summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-29 03:25:05 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-29 03:25:05 +0200
commit6b2bf923534c20eb92ac0e9ad0c5897a9257ccef (patch)
treed1366f3c093dc9623b238d194bb5449f389f3427
parentfd42f6e020de94d11b3cc6bcff6bfc6af23c8aa9 (diff)
nspawn: properly bind mount /sys/fs/selinux into container, since /selinux moved there
-rw-r--r--src/nspawn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nspawn.c b/src/nspawn.c
index 8d7e0d03a9..a1ed425f05 100644
--- a/src/nspawn.c
+++ b/src/nspawn.c
@@ -133,8 +133,8 @@ static int mount_all(const char *dest) {
{ "/dev/pts", "/dev/pts", "bind", NULL, MS_BIND, true },
{ "tmpfs", "/run", "tmpfs", "mode=755", MS_NOSUID|MS_NODEV, true },
#ifdef HAVE_SELINUX
- { "/selinux", "/selinux", "bind", NULL, MS_BIND, false }, /* Bind mount first */
- { "/selinux", "/selinux", "bind", NULL, MS_BIND|MS_RDONLY|MS_REMOUNT, false }, /* Then, make it r/o */
+ { "/sys/fs/selinux", "/sys/fs/selinux", "bind", NULL, MS_BIND, false }, /* Bind mount first */
+ { "/sys/fs/selinux", "/sys/fs/selinux", "bind", NULL, MS_BIND|MS_RDONLY|MS_REMOUNT, false }, /* Then, make it r/o */
#endif
};