aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-12-06 09:38:58 +0100
committerDmitry Vyukov <dvyukov@google.com>2024-12-06 08:50:45 +0000
commitdb71b33259eecad538948bd227ac995db11079c6 (patch)
tree9823fa2273ea13c147cad4b0b0c9abc822d9a090
parent637acba36dcf8a7d2a71ee856f5f6f36c612525c (diff)
executor: setup sysctl/cgroups in snapshot mode
We missed that step for snapshot mode.
-rw-r--r--executor/snapshot.h8
1 files changed, 8 insertions, 0 deletions
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<uint64>(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;