summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/userchroot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/userchroot.py b/examples/userchroot.py
index 9c05c6f..2caea33 100755
--- a/examples/userchroot.py
+++ b/examples/userchroot.py
@@ -37,8 +37,8 @@ def main() -> None:
os.setreuid(0, 0)
linuxnamespaces.bind_mount(chrootdir, "/mnt", recursive=True)
- linuxnamespaces.bind_mount(chrootdir / "proc", "/proc", recursive=True)
- linuxnamespaces.bind_mount(chrootdir / "sys", "/sys", recursive=True)
+ linuxnamespaces.bind_mount("/proc", "/mnt/proc", recursive=True)
+ linuxnamespaces.bind_mount("/sys", "/mnt/sys", recursive=True)
linuxnamespaces.populate_dev("/", "/mnt", pidns=False)
os.chdir("/mnt")
linuxnamespaces.pivot_root(".", ".")