Skip to main content

Python extension for C's unshare call (man 2 unshare)

Project description

unshare

PyPI

pip3 install unshare

Python extension for C's unshare call.
See man 2 unshare.

Note: This is targeted for only Linux based platforms.

Usage

unshare(flags) where supported flags are CLONE_NEWNS, CLONE_NEWUTS, CLONE_NEWPID, CLONE_NEWUSER, CLONE_NEWIPC, CLONE_NEWNET, CLONE_THREAD.
Multiple flags can be used using the bitwise or operator.

Example usage

import unshare
unshare.unshare(unshare.CLONE_NEWUTS)

The following screenshot is taken from a sample script which uses the unshare library.

License

This project is licensed under GPLv3.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unshare-0.22.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file unshare-0.22.tar.gz.

File metadata

  • Download URL: unshare-0.22.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for unshare-0.22.tar.gz
Algorithm Hash digest
SHA256 d521d72cca6e876f22cbd5ff5eb51f1beef75e8f9c53b599b55fa05fba1dd3a6
MD5 68213fdc40e71eb6d01d0a02677096f5
BLAKE2b-256 15852ba218129c95b894efe87506489b525f859c40f6e21cb0521ff3cec754f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page