From: mestre Date: Tue, 2 Aug 2022 09:07:34 +0000 (+0000) Subject: shamelessly missed to unveil(_PATH_BSHELL, "x") which is required to run the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c29fbb987860659cc3c7662748fbe7333aa2f268;p=openbsd shamelessly missed to unveil(_PATH_BSHELL, "x") which is required to run the commands inside usbhidaction(1)'s `conf' file. reported and fix tested by Hector Velasco < tech ! ogroth . com > --- diff --git a/usr.bin/usbhidaction/usbhidaction.c b/usr.bin/usbhidaction/usbhidaction.c index d074651a021..995b673b2b5 100644 --- a/usr.bin/usbhidaction/usbhidaction.c +++ b/usr.bin/usbhidaction/usbhidaction.c @@ -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");