diff options
author | Helmut Grohne <helmut@subdivi.de> | 2025-05-04 19:38:58 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2025-05-04 19:38:58 +0200 |
commit | 8e4f97aeffc4144e67c26b5a6f1943cefbc8790f (patch) | |
tree | f92e3ab6764d7edf2c64d367716f79c32710d6c3 /examples | |
parent | 0b4caacc77b6bd8551a68cb704aa27ebda820ee0 (diff) | |
download | python-linuxnamespaces-8e4f97aeffc4144e67c26b5a6f1943cefbc8790f.tar.gz |
examples/withallsubuids.py: expand comparison to unshare(1)
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/withallsubuids.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/withallsubuids.py b/examples/withallsubuids.py index 2a0c9d5..c247002 100755 --- a/examples/withallsubuids.py +++ b/examples/withallsubuids.py @@ -4,7 +4,9 @@ """Map all available ranges from /etc/subuid and /etc/subgid as identity and run a given command with all capabilities (including CAP_DAC_OVERRIDE) -inherited. +inherited. This is vaguely similar to running: + + unshare --map-auto --map-user=$(id -u) --map-group=$(id -g) --keep-caps """ import os |