aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/generated.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/csource/generated.go')
-rw-r--r--pkg/csource/generated.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index 6960a1f94..ee719dc65 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -2946,9 +2946,6 @@ static void setup_common()
setup_cgroups();
setup_binfmt_misc();
#endif
-#if SYZ_EXECUTOR || SYZ_RESET_NET_NAMESPACE
- checkpoint_net_namespace();
-#endif
}
#endif
@@ -3377,7 +3374,7 @@ static void kill_and_wait(int pid, int* status)
}
#endif
-#if SYZ_EXECUTOR || SYZ_REPEAT && SYZ_ENABLE_CGROUPS
+#if SYZ_EXECUTOR || SYZ_REPEAT && (SYZ_ENABLE_CGROUPS || SYZ_RESET_NET_NAMESPACE)
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
@@ -3416,6 +3413,9 @@ static void setup_loop()
debug("write(%s) failed: %d\n", procs_file, errno);
}
#endif
+#if SYZ_EXECUTOR || SYZ_RESET_NET_NAMESPACE
+ checkpoint_net_namespace();
+#endif
}
#endif