diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-06-22 23:10:56 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-06-22 23:10:56 +0200 |
commit | d657a3ae763e0a82dc00bbc80c0b6b64a748cede (patch) | |
tree | d44c028034dc06d64e0ed1fe02e13f677c8b59cf | |
parent | 928c4a94de0302634c66d8a559fc6ac26d21e5af (diff) | |
download | python-linuxnamespaces-d657a3ae763e0a82dc00bbc80c0b6b64a748cede.tar.gz |
unschroot: allow device access
-rwxr-xr-x | examples/unschroot.py | 2 |
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) |