Documentation
¶
Overview ¶
Package nondumpable keeps a Peen process's memory and environment away from other processes that run as the same user.
A `control` agent runs as the controller's user. Without this, a command it runs could read the controller's API token and the provider credentials from /proc/<pid>/environ of the controller or of its own worker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Enable ¶
Enable clears the process's dumpable flag with prctl(PR_SET_DUMPABLE, 0).
The kernel then makes /proc/<pid>/environ, mem, maps, and the other private /proc files owned by root and refuses ptrace from processes with the same user ID. A process with CAP_SYS_PTRACE, root included, can still read them. The flag resets on execve, so programs this process starts are unaffected.
Types ¶
This section is empty.