{ "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) {
if (path_startswith(path, mount_table[i].where))
return true;
- return false;
+ return path_startswith(path, "/cgroup/");
}
static int mount_one(const MountPoint *p) {
return -ENOENT;
/* Ignore the header line */
- fgets(buf, sizeof(buf), f);
+ (void) fgets(buf, sizeof(buf), f);
for (;;) {
MountPoint p;