X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=mount-setup.c;h=cb91e181bf35ef62cfef9c23201a6b80a331cb58;hb=05a602f468a4f00d36ee7da73f13c0b014786fea;hp=b80289466200e7c9be97f7511f99f2278041572f;hpb=f7d0139401aa526f3df72cb45cff38f648737623;p=elogind.git diff --git a/mount-setup.c b/mount-setup.c index b80289466..cb91e181b 100644 --- a/mount-setup.c +++ b/mount-setup.c @@ -50,6 +50,7 @@ static const MountPoint mount_table[] = { { "cgroup", "/cgroup/debug", "cgroup", "debug", MS_NOSUID|MS_NOEXEC|MS_NODEV, true }, { "debugfs", "/sys/kernel/debug", "debugfs", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV, false }, { "binfmt_misc", "/proc/sys/fs/binfmt_misc", "binfmt_misc", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV, false }, + { "mqueue", "/dev/mqueue", "mqueue", NULL, MS_NOSUID|MS_NOEXEC|MS_NODEV, false }, }; bool mount_point_is_api(const char *path) { @@ -62,7 +63,7 @@ bool mount_point_is_api(const char *path) { if (path_startswith(path, mount_table[i].where)) return true; - return false; + return path_startswith(path, "/cgroup/"); } static int mount_one(const MountPoint *p) { @@ -109,7 +110,7 @@ static int mount_cgroup_controllers(void) { return -ENOENT; /* Ignore the header line */ - fgets(buf, sizeof(buf), f); + (void) fgets(buf, sizeof(buf), f); for (;;) { MountPoint p;