Skip to main content

is_nested

Function is_nested 

Source
pub fn is_nested() -> bool
Expand description

Detect if this process is already inside a sandbox.

Checks both the in-process flag and /proc/self/status (Seccomp: 2) to catch cross-process nesting (e.g. sandlock run -- python agent.py where agent.py creates inner sandboxes).