[git commit] partprobe: make it NOEXEC

Denys Vlasenko vda.linux at googlemail.com
Fri Aug 4 23:46:39 UTC 2017


commit: https://git.busybox.net/busybox/commit/?id=9c49d6e11b54bd0695240119f5f28672173f6300
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 NOFORK_NOEXEC.lst     | 2 +-
 miscutils/partprobe.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst
index f6cc548..0e1fb1f 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 2c12a7d..d1ae273 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
 


More information about the busybox-cvs mailing list