Skip to main content

Module pathrs_root

Module pathrs_root 

Source
Expand description

Linux pathrs-based containment (kernel-enforced via openat2).

On Linux 5.6+, pathrs uses openat2 with RESOLVE_IN_ROOT which atomically resolves paths within the root. On older kernels, it falls back to O_PATH walk with /proc/self/fd verification.

Structsยง

PathrsRoot
Kernel-enforced path containment using pathrs + openat2(RESOLVE_IN_ROOT).