Expand description
Defense-in-depth host sandboxing (Linux Landlock ABI v1-v4 + PR_SET_NO_NEW_PRIVS)
and cross-platform host process telemetry (getrusage peak RSS, getrandom entropy).
Structs§
- Sandbox
Path Grant - Host path allowed through Landlock when sandboxing is enabled.
- Sandbox
Status - Summary of the OS sandbox enforcement status.
Functions§
- apply_
landlock - Apply Linux Landlock +
PR_SET_NO_NEW_PRIVSto the current thread and all threads it subsequently spawns. - fill_
random - Fill
dstwith cryptographic entropy via syscall (getrandomon Linux) so no/dev/urandomfilesystem access is required after Landlock is applied. - init_
rss_ handle - Pre-open
/proc/self/statusbefore applying Landlock sopeak_rss_mib()can continue readingVmHWM:without opening any paths afterward. - peak_
rss_ mib - Read peak resident set size (MiB) accurately: