summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-06-22 23:10:56 +0200
committerHelmut Grohne <helmut@subdivi.de>2024-06-22 23:10:56 +0200
commitd657a3ae763e0a82dc00bbc80c0b6b64a748cede (patch)
treed44c028034dc06d64e0ed1fe02e13f677c8b59cf
parent928c4a94de0302634c66d8a559fc6ac26d21e5af (diff)
downloadpython-linuxnamespaces-d657a3ae763e0a82dc00bbc80c0b6b64a748cede.tar.gz
unschroot: allow device access
-rwxr-xr-xexamples/unschroot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/unschroot.py b/examples/unschroot.py
index 7ad0bed..3d1c900 100755
--- a/examples/unschroot.py
+++ b/examples/unschroot.py
@@ -243,7 +243,7 @@ def do_run_session(args: argparse.Namespace) -> None:
os.setuid(0)
linuxnamespaces.bind_mount(".", "/mnt", recursive=True)
os.chdir("/mnt")
- linuxnamespaces.populate_sys("/", ".", ns)
+ linuxnamespaces.populate_sys("/", ".", ns, devices=True)
linuxnamespaces.populate_proc("/", ".", ns)
linuxnamespaces.populate_dev(
"/", ".", tun=bool(ns & linuxnamespaces.CloneFlags.NEWNET)