]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/nspawn/nspawn.c
namespace: beef up read-only bind mount logic
authorLennart Poettering <lennart@poettering.net>
Fri, 6 Jun 2014 09:42:25 +0000 (11:42 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 6 Jun 2014 12:37:40 +0000 (14:37 +0200)
commitd6797c920e9eb70f46a893c00fdd9ecb86d15f84
tree7029ba9333ceb289752c85f154f4fa1350fa941d
parentc8835999c33c0443bf91e1a8fa6dd716a8ff0b0f
namespace: beef up read-only bind mount logic

Instead of blindly creating another bind mount for read-only mounts,
check if there's already one we can use, and if so, use it. Also,
recursively mark all submounts read-only too. Also, ignore autofs mounts
when remounting read-only unless they are already triggered.
man/systemd.exec.xml
src/core/namespace.c
src/nspawn/nspawn.c
src/shared/util.c
src/shared/util.h