aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-05 01:46:39 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-05 01:46:39 +0200
commit9c49d6e11b54bd0695240119f5f28672173f6300 (patch)
tree4b45e6420f2e3099d39512f21d6620a3c291b633
parenta453ca576fba45849784322681a4515bdab9ceab (diff)
downloadbusybox-9c49d6e11b54bd0695240119f5f28672173f6300.tar.gz
partprobe: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--NOFORK_NOEXEC.lst2
-rw-r--r--miscutils/partprobe.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst
index f6cc548d2..0e1fb1f55 100644
--- a/NOFORK_NOEXEC.lst
+++ b/NOFORK_NOEXEC.lst
@@ -252,7 +252,7 @@ nproc - NOFORK
ntpd - daemon
od - runner
openvt - longterm: spawns a child and waits for it
-partprobe - noexec candidate (simple), leaks: open+ioctl_or_perror_and_die(BLKRRPART)
+partprobe - noexec. leaks: open+ioctl_or_perror_and_die(BLKRRPART)
passwd - suid
paste - noexec. runner
patch - needs ^C
diff --git a/miscutils/partprobe.c b/miscutils/partprobe.c
index 2c12a7d20..d1ae27348 100644
--- a/miscutils/partprobe.c
+++ b/miscutils/partprobe.c
@@ -11,7 +11,7 @@
//config: help
//config: Ask kernel to rescan partition table.
-//applet:IF_PARTPROBE(APPLET(partprobe, BB_DIR_USR_SBIN, BB_SUID_DROP))
+//applet:IF_PARTPROBE(APPLET_NOEXEC(partprobe, partprobe, BB_DIR_USR_SBIN, BB_SUID_DROP, partprobe))
//kbuild:lib-$(CONFIG_PARTPROBE) += partprobe.o