summaryrefslogtreecommitdiff
path: root/src/udev/udev-event.c
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-06-30 13:21:14 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-06-30 14:05:03 +0000
commit3c59d4f21f714838ce0c28b2a4ff305e56a4a342 (patch)
treef5587ef0b770713bf433acf83c395ce8e31be077 /src/udev/udev-event.c
parent9ebdb1e057045d2b96f5980c61667cd41914177b (diff)
nspawn: Don't remount with fewer options
When we do a MS_BIND mount, it inherits the flags of its parent mount. When we do a remount, it sets the flags to exactly what is specified. If we are in a user namespace then these mount points have their flags locked, so you can't reduce the protection. As a consequence, the default setup of mount_all doesn't work with user namespaces. However if we ensure we add the mount flags of the parent mount when remounting, then we aren't removing mount options, so we aren't trying to unlock an option that we aren't allowed to.
Diffstat (limited to 'src/udev/udev-event.c')
0 files changed, 0 insertions, 0 deletions