summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2024-05-07 09:54:59 +0200
committerHelmut Grohne <helmut@subdivi.de>2024-05-07 09:54:59 +0200
commitcd0ada6b19b03bda74fcb81316aa104e0d1bbac6 (patch)
tree667a3becf5286a7056f14bb38bb7604c1aab62ca /examples
parentdde202c733fe9a30932f56b2fcfc2dfafa5d7a63 (diff)
downloadpython-linuxnamespaces-cd0ada6b19b03bda74fcb81316aa104e0d1bbac6.tar.gz
mount: allow data argument to be a list
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/chrootfuse.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/chrootfuse.py b/examples/chrootfuse.py
index 55a394e..ef67e8a 100755
--- a/examples/chrootfuse.py
+++ b/examples/chrootfuse.py
@@ -71,7 +71,13 @@ def main() -> None:
linuxnamespaces.MountFlags.RDONLY
if readonly
else linuxnamespaces.MountFlags.NONE,
- "fd=%d,rootmode=040755,user_id=0,group_id=0,allow_other" % fusefd,
+ [
+ "fd=%d" % fusefd,
+ "rootmode=040755",
+ "user_id=0",
+ "group_id=0",
+ "allow_other",
+ ],
)
os.chdir("/mnt")
linuxnamespaces.bind_mount("/proc", "proc", recursive=True)