From d409a638888be0dc18845e111e1b31e472ca0a2c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 7 Oct 2021 18:24:31 +0200 Subject: executor: mount new cgroups Mount net, blkio, rlimit cgroups. --- executor/common_linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index 972376165..3bc4f8eac 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3473,7 +3473,7 @@ static void setup_cgroups() if (mkdir("/syzcgroup/cpu", 0777)) { debug("mkdir(/syzcgroup/cpu) failed: %d\n", errno); } - if (mount("none", "/syzcgroup/cpu", "cgroup", 0, "cpuset,cpuacct,perf_event,hugetlb")) { + if (mount("none", "/syzcgroup/cpu", "cgroup", 0, "cpuset,cpuacct,perf_event,hugetlb,rlimit")) { debug("mount(cgroup cpu) failed: %d\n", errno); } write_file("/syzcgroup/cpu/cgroup.clone_children", "1"); @@ -3484,7 +3484,7 @@ static void setup_cgroups() if (mkdir("/syzcgroup/net", 0777)) { debug("mkdir(/syzcgroup/net) failed: %d\n", errno); } - if (mount("none", "/syzcgroup/net", "cgroup", 0, "net_cls,net_prio,devices,freezer")) { + if (mount("none", "/syzcgroup/net", "cgroup", 0, "net,net_cls,net_prio,devices,blkio,freezer")) { debug("mount(cgroup net) failed: %d\n", errno); } if (chmod("/syzcgroup/net", 0777)) { -- cgit mrf-deployment