diff options
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/chroottar.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/chroottar.py b/examples/chroottar.py index e002ed8..56613de 100755 --- a/examples/chroottar.py +++ b/examples/chroottar.py @@ -69,6 +69,7 @@ def main() -> None: setupevent.close() os.setreuid(0, 0) os.setregid(0, 0) + os.setgroups([]) for tmem in tarf: if tmem.name.removeprefix("./").startswith("dev/"): continue @@ -91,6 +92,7 @@ def main() -> None: [gidmap, linuxnamespaces.IDMapping(65536, os.getgid(), 1)], ) os.chown(tdir, 0, 0) + os.chmod(tdir, 0o755) setupevent.write() setupevent.close() _, ret = os.waitpid(pid, 0) |