summaryrefslogtreecommitdiff
path: root/examples/chrootfuse.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2025-06-27 21:04:36 +0200
committerHelmut Grohne <helmut@subdivi.de>2025-06-27 21:21:21 +0200
commit7d6895d7ca0fe472c64964793b12f8ea536decde (patch)
treed31834267c8f3ee72c27c1d5acb79ac16c774336 /examples/chrootfuse.py
parent7dbe52bb5cf303f4a51b58c9e2865d3ece3394bf (diff)
downloadpython-linuxnamespaces-7d6895d7ca0fe472c64964793b12f8ea536decde.tar.gz
mount syscall now accepts options as dict
Diffstat (limited to 'examples/chrootfuse.py')
-rwxr-xr-xexamples/chrootfuse.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/chrootfuse.py b/examples/chrootfuse.py
index 7e77384..7e79a2e 100755
--- a/examples/chrootfuse.py
+++ b/examples/chrootfuse.py
@@ -74,13 +74,13 @@ def main() -> None:
linuxnamespaces.MountFlags.RDONLY
if readonly
else linuxnamespaces.MountFlags.NONE,
- [
- "fd=%d" % fusefd,
- "rootmode=040755",
- "user_id=0",
- "group_id=0",
- "allow_other",
- ],
+ {
+ "fd": fusefd,
+ "rootmode": "040755",
+ "user_id": 0,
+ "group_id": 0,
+ "allow_other": None,
+ },
)
os.chdir("/mnt")
linuxnamespaces.bind_mount("/proc", "proc", recursive=True)