From 607ad2b370822491f074f06a4e751c23cfefce05 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 11 Oct 2021 14:19:42 +0200 Subject: 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. --- executor/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'executor/common.h') 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 -- cgit mrf-deployment