Module gaol::platform::linux::namespace

source ยท
Expand description

Sandboxing on Linux via namespaces.

Structsยง

Constantsยง

Functionsยง

  • 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.
  • Sets up the user and PID namespaces.
  • Spawns a child process in a new namespace.

Type Aliasesยง