deny /sys/kernel/debug/{,**} rwklx,
# allow paths to be made slave, shared, private or unbindable
- mount options=(rw,make-slave) -> **,
- mount options=(rw,make-rslave) -> **,
- mount options=(rw,make-shared) -> **,
- mount options=(rw,make-rshared) -> **,
- mount options=(rw,make-private) -> **,
- mount options=(rw,make-rprivate) -> **,
- mount options=(rw,make-unbindable) -> **,
- mount options=(rw,make-runbindable) -> **,
+ mount options=(rw,make-slave) -> /**,
+ mount options=(rw,make-rslave) -> /**,
+ mount options=(rw,make-shared) -> /**,
+ mount options=(rw,make-rshared) -> /**,
+ mount options=(rw,make-private) -> /**,
+ mount options=(rw,make-rprivate) -> /**,
+ mount options=(rw,make-unbindable) -> /**,
+ mount options=(rw,make-runbindable) -> /**,
# allow bind-mounts of anything except /proc, /sys and /dev
mount options=(rw,bind) /[^spd]*{,/**},
mount fstype=devpts -> /dev/pts/,
mount options=bind /dev/pts/ptmx/ -> /dev/ptmx/,
mount options=bind /dev/pts/** -> /dev/**,
- mount options=(rw, make-slave) -> **,
- mount options=(rw, make-rslave) -> **,
- mount options=(rw, make-shared) -> **,
- mount options=(rw, make-rshared) -> **,
+ mount options=(rw, make-slave) -> /**,
+ mount options=(rw, make-rslave) -> /**,
+ mount options=(rw, make-shared) -> /**,
+ mount options=(rw, make-rshared) -> /**,
mount fstype=debugfs,
mount fstype=fuse.*,
# allow pre-mount hooks to stage mounts under /var/lib/lxc/<container>/
" deny /sys/kernel/debug/{,**} rwklx,\n"
"\n"
" # allow paths to be made dependent, shared, private or unbindable\n"
-" mount options=(rw,make-slave) -> **,\n"
-" mount options=(rw,make-rslave) -> **,\n"
-" mount options=(rw,make-shared) -> **,\n"
-" mount options=(rw,make-rshared) -> **,\n"
-" mount options=(rw,make-private) -> **,\n"
-" mount options=(rw,make-rprivate) -> **,\n"
-" mount options=(rw,make-unbindable) -> **,\n"
-" mount options=(rw,make-runbindable) -> **,\n"
+" mount options=(rw,make-slave) -> /**,\n"
+" mount options=(rw,make-rslave) -> /**,\n"
+" mount options=(rw,make-shared) -> /**,\n"
+" mount options=(rw,make-rshared) -> /**,\n"
+" mount options=(rw,make-private) -> /**,\n"
+" mount options=(rw,make-rprivate) -> /**,\n"
+" mount options=(rw,make-unbindable) -> /**,\n"
+" mount options=(rw,make-runbindable) -> /**,\n"
"\n"
" # allow bind-mounts of anything except /proc, /sys and /dev\n"
" mount options=(rw,bind) /[^spd]*{,/**},\n"
" pivot_root,\n"
"\n"
" # Allow modifying mount propagation\n"
-" mount options=(rw,make-slave) -> **,\n"
-" mount options=(rw,make-rslave) -> **,\n"
-" mount options=(rw,make-shared) -> **,\n"
-" mount options=(rw,make-rshared) -> **,\n"
-" mount options=(rw,make-private) -> **,\n"
-" mount options=(rw,make-rprivate) -> **,\n"
-" mount options=(rw,make-unbindable) -> **,\n"
-" mount options=(rw,make-runbindable) -> **,\n"
+" mount options=(rw,make-slave) -> /**,\n"
+" mount options=(rw,make-rslave) -> /**,\n"
+" mount options=(rw,make-shared) -> /**,\n"
+" mount options=(rw,make-rshared) -> /**,\n"
+" mount options=(rw,make-private) -> /**,\n"
+" mount options=(rw,make-rprivate) -> /**,\n"
+" mount options=(rw,make-unbindable) -> /**,\n"
+" mount options=(rw,make-runbindable) -> /**,\n"
"\n"
" # Allow all bind-mounts\n"
" mount options=(rw,bind),\n"