aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-05 23:28:19 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-05 23:28:19 +0200
commit3239ab89c9b401096966f6af373b0aa18bce9284 (patch)
tree11132e8d2a70ff73f7ae06ceb18089bbe42c7843
parent83a6c8d58b3209a1238d24b50c6b717a7c67d1b4 (diff)
downloadbusybox-3239ab89c9b401096966f6af373b0aa18bce9284.tar.gz
lspci,lsscsi,lsusb: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--NOFORK_NOEXEC.lst6
-rw-r--r--miscutils/lsscsi.c2
-rw-r--r--util-linux/lspci.c2
-rw-r--r--util-linux/lsusb.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst
index 8b35df289..c605302d9 100644
--- a/NOFORK_NOEXEC.lst
+++ b/NOFORK_NOEXEC.lst
@@ -207,9 +207,9 @@ ls - noexec. runner
lsattr - noexec. runner
lsmod - noexec
lsof - complex
-lspci - noexec candidate, too rare to bother for nofork
-lsscsi - noexec candidate, too rare to bother for nofork
-lsusb - noexec candidate, too rare to bother for nofork
+lspci - noexec. too rare to bother for nofork
+lsscsi - noexec. too rare to bother for nofork
+lsusb - noexec. too rare to bother for nofork
lzcat - runner
lzma - runner
lzop - runner
diff --git a/miscutils/lsscsi.c b/miscutils/lsscsi.c
index c86630e31..d7cd51056 100644
--- a/miscutils/lsscsi.c
+++ b/miscutils/lsscsi.c
@@ -16,7 +16,7 @@
//config:
//config: This version uses sysfs (/sys/bus/scsi/devices) only.
-//applet:IF_LSSCSI(APPLET(lsscsi, BB_DIR_USR_BIN, BB_SUID_DROP))
+//applet:IF_LSSCSI(APPLET_NOEXEC(lsscsi, lsscsi, BB_DIR_USR_BIN, BB_SUID_DROP, lsscsi))
//kbuild:lib-$(CONFIG_LSSCSI) += lsscsi.o
diff --git a/util-linux/lspci.c b/util-linux/lspci.c
index 3877deb67..0000fbfda 100644
--- a/util-linux/lspci.c
+++ b/util-linux/lspci.c
@@ -16,7 +16,7 @@
//config:
//config: This version uses sysfs (/sys/bus/pci/devices) only.
-//applet:IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP))
+//applet:IF_LSPCI(APPLET_NOEXEC(lspci, lspci, BB_DIR_USR_BIN, BB_SUID_DROP, lspci))
//kbuild:lib-$(CONFIG_LSPCI) += lspci.o
diff --git a/util-linux/lsusb.c b/util-linux/lsusb.c
index cabf047cf..33639413a 100644
--- a/util-linux/lsusb.c
+++ b/util-linux/lsusb.c
@@ -16,7 +16,7 @@
//config:
//config: This version uses sysfs (/sys/bus/usb/devices) only.
-//applet:IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP))
+//applet:IF_LSUSB(APPLET_NOEXEC(lsusb, lsusb, BB_DIR_USR_BIN, BB_SUID_DROP, lsusb))
//kbuild:lib-$(CONFIG_LSUSB) += lsusb.o