mirror of
https://github.com/aydencharles/onionHEN.git
synced 2026-10-23 04:12:37 -05:00
Merge the three pt/elfldr clones (bootstrapper, libNineS, unpacker) into a single liborion_elfldr with one authid policy (elevate once at inject entry, never per ptrace). Wire consumers through shared headers; drop dead unpacker loader sources. Route shellui if_exists through orion/platform and daemon ShellUI/BigApp pid lookup through orion_proc. Document the layout and audit status in docs/arch.md and docs/architecture-audit.md.
24 lines
546 B
C
24 lines
546 B
C
/* Copyright (C) 2024–2025 John Törnblom / OrionHEN
|
||
*
|
||
* Util-facing ptrace API. Implementation: liborion_elfldr (no per-call authid).
|
||
* Process is elevated once (DEBUG_AUTHID) at util main; cave map uses shared pt_*.
|
||
*/
|
||
|
||
#pragma once
|
||
|
||
#include <orion/pt.h>
|
||
|
||
#ifdef __cplusplus
|
||
extern "C" {
|
||
#endif
|
||
|
||
/* Historical util names → shared attach/detach. */
|
||
static inline int pt_attach_proc(pid_t pid) { return pt_attach(pid); }
|
||
static inline int pt_detach_proc(pid_t pid, int sig) {
|
||
return pt_detach(pid, sig);
|
||
}
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
#endif
|