artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95e5bec
)
shamelessly missed to unveil(_PATH_BSHELL, "x") which is required to run the
author
mestre
<mestre@openbsd.org>
Tue, 2 Aug 2022 09:07:34 +0000
(09:07 +0000)
committer
mestre
<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
patch
|
blob
|
history
diff --git
a/usr.bin/usbhidaction/usbhidaction.c
b/usr.bin/usbhidaction/usbhidaction.c
index
d074651
..
995b673
100644
(file)
--- a/
usr.bin/usbhidaction/usbhidaction.c
+++ b/
usr.bin/usbhidaction/usbhidaction.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: usbhidaction.c,v 1.2
4 2021/12/15 11:23:09
mestre Exp $ */
+/* $OpenBSD: usbhidaction.c,v 1.2
5 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");