shamelessly missed to unveil(_PATH_BSHELL, "x") which is required to run the
authormestre <mestre@openbsd.org>
Tue, 2 Aug 2022 09:07:34 +0000 (09:07 +0000)
committermestre <mestre@openbsd.org>
Tue, 2 Aug 2022 09:07:34 +0000 (09:07 +0000)
commands inside usbhidaction(1)'s `conf' file.

reported and fix tested by Hector Velasco < tech ! ogroth . com >

usr.bin/usbhidaction/usbhidaction.c

index d074651..995b673 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: usbhidaction.c,v 1.24 2021/12/15 11:23:09 mestre Exp $ */
+/*     $OpenBSD: usbhidaction.c,v 1.25 2022/08/02 09:07:34 mestre Exp $ */
 /*      $NetBSD: usbhidaction.c,v 1.7 2002/01/18 14:38:59 augustss Exp $ */
 
 /*
@@ -166,6 +166,8 @@ main(int argc, char **argv)
 
        if (unveil(conf, "r") == -1)
                err(1, "unveil %s", conf);
+       if (unveil(_PATH_BSHELL, "x") == -1)
+               err(1, "unveil %s", _PATH_BSHELL);
        if (unveil(NULL, NULL) == -1)
                err(1, "unveil");