diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-10-07 18:24:31 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-12 15:25:31 +0200 |
| commit | d409a638888be0dc18845e111e1b31e472ca0a2c (patch) | |
| tree | d86f9bde6bd053574f3484e003190ade9cf9a965 /executor/common_linux.h | |
| parent | 56aa38a8a19dc3605d0d60d6b99ef6c5469a5ee7 (diff) | |
executor: mount new cgroups
Mount net, blkio, rlimit cgroups.
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 4 |
1 files changed, 2 insertions, 2 deletions
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)) { |
