From 18e33098d58c8738cc3b678346141b74d34d4e30 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 30 Oct 2020 19:25:20 +0100 Subject: executor: fix linux includes write_file() is needed for setup_sysctl() and syz_usbip_server_init(). setup_sysctl() also misses some header includes. --- executor/common_linux.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index 73a2e658d..acb3acde7 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -72,8 +72,9 @@ static int event_timedwait(event_t* ev, uint64 timeout) #if SYZ_EXECUTOR || SYZ_REPEAT || SYZ_NET_INJECTION || SYZ_FAULT || SYZ_SANDBOX_NONE || \ SYZ_SANDBOX_SETUID || SYZ_SANDBOX_NAMESPACE || SYZ_SANDBOX_ANDROID || \ - SYZ_FAULT || SYZ_LEAK || SYZ_BINFMT_MISC || \ - ((__NR_syz_usb_connect || __NR_syz_usb_connect_ath9k) && USB_DEBUG) + SYZ_FAULT || SYZ_LEAK || SYZ_BINFMT_MISC || SYZ_SYSCTL || \ + ((__NR_syz_usb_connect || __NR_syz_usb_connect_ath9k) && USB_DEBUG) || \ + __NR_syz_usbip_server_init #include #include #include @@ -4579,6 +4580,9 @@ static void setup_usb() #endif #if SYZ_EXECUTOR || SYZ_SYSCTL +#include +#include + static void setup_sysctl() { static struct { -- cgit mrf-deployment