aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/earlyinit/main.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd/earlyinit/main.go b/cmd/earlyinit/main.go
index 4df46cfc..2f1eebef 100644
--- a/cmd/earlyinit/main.go
+++ b/cmd/earlyinit/main.go
@@ -239,9 +239,16 @@ func main() {
"sysfs",
"/sys",
"sysfs",
- 0,
+ MS_NOSUID|MS_NODEV|MS_NOEXEC,
"",
))
+ mustSyscall("mount cgroup", Mount(
+ "cgroup",
+ "/sys/fs/cgroup",
+ "cgroup2",
+ MS_NOSUID|MS_NODEV|MS_NOEXEC,
+ "nsdelegate",
+ ))
conn := must1(uevent.Dial(-128 * 1024 * 1024))
events := make(chan *uevent.Message, 1<<10)