Skip to main content

Crate pnut_child

Crate pnut_child 

Source
Expand description

Minimal helpers for code that runs in the child after clone3() and before execve().

This crate is intentionally small and has no dependency on pnut. The child path should consume precomputed data from the parent and restrict itself to raw syscalls and simple borrowed views.

Structs§

BindMount
One bind-mount operation.
CapsSpec
Prepared Linux capability state.
ChildFailure
Fixed-layout fatal child failure record.
ChildSpec
One complete child-runtime invocation.
EnvBinding
One environment variable assignment.
EnvSpec
Environment policy applied in the child into caller-provided scratch space.
EnvStorage
Scratch buffers for building the final envp.
ExecSpec
Borrowed view of a fully prepared exec request.
FdSpec
Prepared file-descriptor policy.
FileMount
One file-content injection operation.
LandlockNetRule
One LANDLOCK_RULE_NET_PORT rule.
LandlockPathRule
One LANDLOCK_RULE_PATH_BENEATH rule.
LandlockRulesetAttr
Ruleset attributes passed to landlock_create_ruleset.
LandlockSpec
Prepared Landlock ruleset.
MountPlan
Prepared filesystem mount plan for child-side execution.
MqueueMount
One mqueue mount operation.
ProcMount
One procfs mount operation.
ProcessSpec
Process toggles applied during child setup.
RlimitEntry
One setrlimit call.
RlimitSpec
Precomputed resource limits.
SeccompSpec
Prepared seccomp filter installation request.
TmpfsMount
One tmpfs mount operation.

Enums§

FdAction
One precomputed fd action for the child runtime.
HidePid
Proc mount hidepid= option.
MountEntry
One filesystem mount operation.
ProcSubset
Proc mount subset= option.
Stage
Child-runtime stage identifier.

Functions§

run