diff options
author | Helmut Grohne <helmut@subdivi.de> | 2024-06-22 22:56:53 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2024-06-22 23:10:16 +0200 |
commit | 928c4a94de0302634c66d8a559fc6ac26d21e5af (patch) | |
tree | 28b52c5f025241251605ce6296f8a0965156c983 /examples/unschroot.py | |
parent | 13be09d259f5006e19f0e770a1999b5d7c9247fe (diff) | |
download | python-linuxnamespaces-928c4a94de0302634c66d8a559fc6ac26d21e5af.tar.gz |
populate_sys: allow device access
The systemd test suite does not like having no access to /sys/dev and
other trees related to devices. Optionally provide them. Properly
virtualizing them likely requires lxcfs or similar.
Diffstat (limited to 'examples/unschroot.py')
-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 59c0ce4..7ad0bed 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("/", ".") + linuxnamespaces.populate_sys("/", ".", ns) linuxnamespaces.populate_proc("/", ".", ns) linuxnamespaces.populate_dev( "/", ".", tun=bool(ns & linuxnamespaces.CloneFlags.NEWNET) |