summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/withallsubuids.py4
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