summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-12-23 22:33:24 +0100
committerLennart Poettering <lennart@poettering.net>2010-12-23 22:33:24 +0100
commit501c875bffaef3263ad42c32485c7fde41027175 (patch)
treeacc1478197eb6db3928056c54a5f9d064e32db33
parentc8bffa43fda412fa23bcf2b317a2bbfdf51f6473 (diff)
mount-setup: drop noexec flag from default mount options for /dev/shm
We shouldn't break PROT_EXEC which is a valid mmap() flag.
-rw-r--r--src/mount-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mount-setup.c b/src/mount-setup.c
index 4adb86f157..b85ac6d3fe 100644
--- a/src/mount-setup.c
+++ b/src/mount-setup.c
@@ -48,7 +48,7 @@ static const MountPoint mount_table[] = {
{ "proc", "/proc", "proc", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV, true },
{ "sysfs", "/sys", "sysfs", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV, true },
{ "devtmpfs", "/dev", "devtmpfs", "mode=755", MS_NOSUID, true },
- { "tmpfs", "/dev/shm", "tmpfs", "mode=1777", MS_NOSUID|MS_NOEXEC|MS_NODEV, true },
+ { "tmpfs", "/dev/shm", "tmpfs", "mode=1777", MS_NOSUID|MS_NODEV, true },
{ "devpts", "/dev/pts", "devpts", NULL, MS_NOSUID|MS_NOEXEC, false },
{ "tmpfs", "/sys/fs/cgroup", "tmpfs", "mode=755", MS_NOSUID|MS_NOEXEC|MS_NODEV, true },
{ "cgroup", "/sys/fs/cgroup/systemd", "cgroup", "none,name=systemd", MS_NOSUID|MS_NOEXEC|MS_NODEV, true },