summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/chroottar.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/chroottar.py b/examples/chroottar.py
index 30017e5..3c38a97 100755
--- a/examples/chroottar.py
+++ b/examples/chroottar.py
@@ -76,14 +76,6 @@ def main() -> None:
for tmem in tarf:
if tmem.name.removeprefix("./").startswith("dev/"):
continue
- # Our namespace has privileged uids allocated high. Hence
- # clamp unpacking.
- if tmem.uid >= 65536 or tmem.gid >= 65536:
- tmem.mode &= ~0o7000
- if tmem.uid >= 65536:
- tmem.uid = 0
- if tmem.gid >= 65536:
- tmem.gid = 0
tarf.extract(tmem, numeric_owner=True)
linuxnamespaces.bind_mount(".", "/mnt", recursive=True)
os.chdir("/mnt")