Expand description
Sandboxing on Linux via namespaces.
Structsยง
- Chroot
Jail ๐ - A
chroot
jail with a restricted view of the filesystem inside it. - __
user_ ๐cap_ data_ struct - __
user_ ๐cap_ header_ struct
Constantsยง
Functionsยง
- activate
- Creates a namespace and sets up a chroot jail.
- capset ๐ โ
- drop_
capabilities ๐ - Removes fake-superuser capabilities. This removes our ability to mess with the filesystem view weโve set up.
- prepare_
user_ ๐ โand_ pid_ namespaces - Sets up the user and PID namespaces.
- start
- Spawns a child process in a new namespace.
Type Aliasesยง
- cap_
user_ ๐header_ t - const_
cap_ ๐user_ data_ t