diff options
Diffstat (limited to 'examples/withallsubuids.py')
-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 |