Python library to interact with Linux kernel namespaces.
Project description
Python-lxns
Python library to control Linux kernel namespaces
Implemented using C extension module.
Current features implemented:
- Linux namespaces class abstractions with automatic resource control.
- Opening existing namespaces using PIDs.
- Opening parent user namespaces. (usually unaccessible from
/proc
) - Switching to a namespace.
- Unsharing namespaces either from class method or function with boolean flags.
- Automatic file descriptor resource control using
with
. - Getting and setting the max number of namespaces.
- Mount utilities using new file descriptor based API.
- Create bind mounts.
Documentation
Requirements
Compiling source package
- Meson build system
- Python headers
- C compiler
- Linux kernel headers
License
Python-lxns is licensed under Mozilla Public License Version 2.0.
Examples in examples/
folder are licensed under MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lxns-0.0a3.tar.gz
(21.2 kB
view hashes)
Built Distribution
Close
Hashes for lxns-0.0a3-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28f8677ed7aa4b5f46317acc72829c39e2cc555a2bed90dd2cfdf8fbdc7404a0 |
|
MD5 | 21c7cb60af7211b287f311f3faabbd81 |
|
BLAKE2b-256 | 27369cba5b3db20478360770b2066b0ae1f509dadc4af0f81a9191f7ddd39bc3 |