chiark / gitweb /
core/killall.c: prevent segfault and initialize pids
[elogind.git] / src / core / mount-setup.c
index 6140f56d831ba5ee4b0c2c0d0c3eca6cb4645b43..fe50fb19dae7b54a717099905e90655dcc7d4778 100644 (file)
@@ -315,6 +315,7 @@ int mount_cgroup_controllers(char ***join_controllers) {
                 p.type = "cgroup";
                 p.options = options;
                 p.flags = MS_NOSUID|MS_NOEXEC|MS_NODEV;
+                p.mode = MNT_IN_CONTAINER;
 
                 r = mount_one(&p, true);
                 free(controller);