Expand description
Path validation: chroot names and subtree confinement.
Functionsยง
- path_
within_ root - True when
pathis the same as or nested underroot. - resolve_
under_ root - Resolve
relativeunderroot, rejecting..and paths that escaperoot. - validate_
chroot_ name - A single path segment safe for use as a chroot name.