From 67fa1f59b87fed7268b465f7e9540a590a250c65 Mon Sep 17 00:00:00 2001 From: m00nbsd Date: Tue, 19 May 2020 21:13:37 +0200 Subject: executor: add support for USB fuzzing on NetBSD --- executor/common_bsd.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'executor/common_bsd.h') diff --git a/executor/common_bsd.h b/executor/common_bsd.h index c818d802e..4ed81a3a3 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -11,6 +11,17 @@ #include #include +#if GOOS_netbsd +#if SYZ_EXECUTOR || __NR_syz_usb_connect +#include "common_usb_netbsd.h" +static void setup_usb(void) +{ + if (chmod("/dev/vhci", 0666)) + fail("failed to chmod /dev/vhci"); +} +#endif +#endif + #if GOOS_openbsd #define __syscall syscall -- cgit mrf-deployment