/python-unshare

Python bindings for the new Linux unshare() syscall

Primary LanguageCGNU General Public License v2.0GPL-2.0

This simple extension provides bindings to the Linux unshare() syscall, added in kernel version 2.6.16

By using unshare(), new and interesting features of the Linux kernel can be exploited, such as:

  • Creating a new network name space (CLONE_NEWNET)
  • Creating a new file system mount name space (CLONE_NEWNS)
  • Reverting other features shared from clone()

This library provides an equivalent of the util-linux command-line program unshare.