]> err.no Git - systemd/commitdiff
mount-setup: drop noexec flag from default mount options for /dev/shm
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Dec 2010 21:33:24 +0000 (22:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Dec 2010 21:33:24 +0000 (22:33 +0100)
We shouldn't break PROT_EXEC which is a valid mmap() flag.

src/mount-setup.c

index 4adb86f15731acd4a912fae0fe1793b1a4e12fba..b85ac6d3fe0db6d7356658c64dc52a2dcca5f355 100644 (file)
@@ -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 },