summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/unschroot.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/unschroot.py b/examples/unschroot.py
index cbabcc4..59c0ce4 100755
--- a/examples/unschroot.py
+++ b/examples/unschroot.py
@@ -245,7 +245,9 @@ def do_run_session(args: argparse.Namespace) -> None:
os.chdir("/mnt")
linuxnamespaces.populate_sys("/", ".")
linuxnamespaces.populate_proc("/", ".", ns)
- linuxnamespaces.populate_dev("/", ".")
+ linuxnamespaces.populate_dev(
+ "/", ".", tun=bool(ns & linuxnamespaces.CloneFlags.NEWNET)
+ )
linuxnamespaces.pivot_root(".", ".")
linuxnamespaces.umount(".", linuxnamespaces.UmountFlags.DETACH)
os.chdir("/")