diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-10-11 14:19:42 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-12 15:25:31 +0200 |
| commit | 607ad2b370822491f074f06a4e751c23cfefce05 (patch) | |
| tree | 4ecdc0a0a2ddccb3f6e366dff55523d9427aab5d /executor/common.h | |
| parent | fe37c8029dd9595e960f518080e12f79f832386a (diff) | |
executor: setup cgroups once
Currently we setup cgroups on every test process start
(along with sandbox creation). That's unnecessary because
that's global per-machine setup. Move cgroup setup into setup section
that's executed once per machine from pkg/host.Setup.
Diffstat (limited to 'executor/common.h')
| -rw-r--r-- | executor/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/executor/common.h b/executor/common.h index 7a36cfe8d..1e6eca5ae 100644 --- a/executor/common.h +++ b/executor/common.h @@ -763,6 +763,9 @@ int main(void) #if SYZ_SYSCTL setup_sysctl(); #endif +#if SYZ_CGROUPS + setup_cgroups(); +#endif #if SYZ_BINFMT_MISC setup_binfmt_misc(); #endif |
