Nomenclautre is a library providing access to linux’s namespace manipulation functions. The current version exposes the raw syscalls.

API Documentation

Syscalls to manipulate linux namespaces.

nomenclature.syscalls.setns(fd, nstype)

Reassociate thread with a namespace

  • int (nstype) – The file descriptor referreing to one of the namespace entries in a :directory::/proc/<pid>/ns/ directory.
  • int – The type of namespace the calling thread should be reasscoiated with.

Disassociate parts of the process execution context.

Parameters:int (flags) – A bitmask that specifies which parts of the execution context should be unshared.