aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--executor/common_bsd.h7
-rw-r--r--pkg/csource/generated.go7
2 files changed, 4 insertions, 10 deletions
diff --git a/executor/common_bsd.h b/executor/common_bsd.h
index 95f08bcc5..85db5adf2 100644
--- a/executor/common_bsd.h
+++ b/executor/common_bsd.h
@@ -37,8 +37,6 @@ static uintptr_t syz_open_pts(void)
#endif // GOOS_openbsd
-#if GOOS_freebsd || GOOS_openbsd || GOOS_netbsd
-
#if SYZ_EXECUTOR || SYZ_TUN_ENABLE
#include <fcntl.h>
@@ -312,7 +310,6 @@ static long syz_extract_tcp_res(volatile long a0, volatile long a1, volatile lon
return 0;
}
#endif
-#endif // GOOS_freebsd || GOOS_openbsd
#if SYZ_EXECUTOR || SYZ_SANDBOX_SETUID || SYZ_SANDBOX_NONE
@@ -354,7 +351,7 @@ static void loop();
static int do_sandbox_none(void)
{
sandbox_common();
-#if (GOOS_freebsd || GOOS_openbsd || GOOS_netbsd) && (SYZ_EXECUTOR || SYZ_TUN_ENABLE)
+#if SYZ_EXECUTOR || SYZ_TUN_ENABLE
initialize_tun(procid);
#endif
loop();
@@ -389,7 +386,7 @@ static int do_sandbox_setuid(void)
return wait_for_loop(pid);
sandbox_common();
-#if (GOOS_freebsd || GOOS_openbsd || GOOS_netbsd) && (SYZ_EXECUTOR || SYZ_TUN_ENABLE)
+#if SYZ_EXECUTOR || SYZ_TUN_ENABLE
initialize_tun(procid);
#endif
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index 987253a5e..050a36670 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -432,8 +432,6 @@ static uintptr_t syz_open_pts(void)
#endif
-#if GOOS_freebsd || GOOS_openbsd || GOOS_netbsd
-
#if SYZ_EXECUTOR || SYZ_TUN_ENABLE
#include <fcntl.h>
@@ -677,7 +675,6 @@ static long syz_extract_tcp_res(volatile long a0, volatile long a1, volatile lon
return 0;
}
#endif
-#endif
#if SYZ_EXECUTOR || SYZ_SANDBOX_SETUID || SYZ_SANDBOX_NONE
@@ -713,7 +710,7 @@ static void loop();
static int do_sandbox_none(void)
{
sandbox_common();
-#if (GOOS_freebsd || GOOS_openbsd || GOOS_netbsd) && (SYZ_EXECUTOR || SYZ_TUN_ENABLE)
+#if SYZ_EXECUTOR || SYZ_TUN_ENABLE
initialize_tun(procid);
#endif
loop();
@@ -748,7 +745,7 @@ static int do_sandbox_setuid(void)
return wait_for_loop(pid);
sandbox_common();
-#if (GOOS_freebsd || GOOS_openbsd || GOOS_netbsd) && (SYZ_EXECUTOR || SYZ_TUN_ENABLE)
+#if SYZ_EXECUTOR || SYZ_TUN_ENABLE
initialize_tun(procid);
#endif