Module namespace

Source
Expand description

Sandboxing on Linux via namespaces.

Structsยง

ChrootJail ๐Ÿ”’
A chroot jail with a restricted view of the filesystem inside it.
__user_cap_data_struct ๐Ÿ”’
__user_cap_header_struct ๐Ÿ”’

Constantsยง

_LINUX_CAPABILITY_U32S_3 ๐Ÿ”’
_LINUX_CAPABILITY_VERSION_3 ๐Ÿ”’

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 ๐Ÿ”’