nondumpable

package
v0.49.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 4 Imported by: 0

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

func Enable(ctx context.Context) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL