From db71b33259eecad538948bd227ac995db11079c6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 6 Dec 2024 09:38:58 +0100 Subject: executor: setup sysctl/cgroups in snapshot mode We missed that step for snapshot mode. --- executor/snapshot.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'executor') diff --git a/executor/snapshot.h b/executor/snapshot.h index 059ac8222..0cac33822 100644 --- a/executor/snapshot.h +++ b/executor/snapshot.h @@ -133,6 +133,14 @@ static void SnapshotSetup(char** argv, int argc) .slowdown_scale = static_cast(msg->slowdown()), }; parse_handshake(req); +#if SYZ_HAVE_FEATURES + setup_sysctl(); + setup_cgroups(); +#endif +#if SYZ_HAVE_SETUP_EXT + // This can be defined in common_ext.h. + setup_ext(); +#endif for (const auto& feat : features) { if (!(msg->features() & feat.id)) continue; -- cgit mrf-deployment