Expand description
Privilege elevation support for tracexec.
When --elevate is used, tracexec captures the current user’s credentials,
creates a private abstract Unix domain socket, and spawns sudo tracexec.
The elevated child requests the complete original environment over that
socket. The unelevated parent verifies the child’s Unix socket credentials
before sending anything, then waits for the elevated child to exit. The
elevated tracexec process may only consult an allowlisted subset for its own
behavior, while the tracee is spawned with the complete original environment.
Structs§
- PreElevation
Creds - Saved credentials from before privilege elevation.
Statics§
- RESTORED_
ENV_ ALLOWLIST - Environment variables elevated tracexec may consult after
--elevate.
Functions§
- elevate_
and_ reexec - Re-execute tracexec with elevated privileges via sudo.
- env_
value - env_
var_ os - env_
var_ string - filter_
allowlisted_ env - filter_
allowlisted_ env_ from - request_
env_ from_ parent - Request the complete original environment from the unelevated parent.