raidautorun: make it NOEXEC
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 6 Aug 2017 17:08:46 +0000 (19:08 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 6 Aug 2017 17:08:46 +0000 (19:08 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
NOFORK_NOEXEC.lst
miscutils/raidautorun.c

index 3a30af0e2e2ab6c6fd439cef572edd90cb6c7bfc..99af2435725083f83c2b634ccfad84f702a4ce09 100644 (file)
@@ -274,7 +274,7 @@ pscan - longterm
 pstree - noexec
 pwd - NOFORK
 pwdx - NOFORK
-raidautorun
+raidautorun - noexec. very simple. leaks: open+xioctl
 rdate - needs ^C (may talk to DNS servers, which may be down)
 rdev - leaks: find_block_device -> readdir+xstrdup
 readlink - NOFORK
@@ -294,7 +294,7 @@ route - needs ^C (may talk to DNS servers, which may be down)
 rpm - runner
 rpm2cpio - runner
 rtcwake - longterm: puts system to sleep, optimizing this for speed is pointless
-run-parts
+run-parts - longterm
 runlevel - noexec. can be nofork if "endutxent()" is called unconditionally, but too rare to bother?
 runsv - daemon
 runsvdir - daemon
index ecedf9ce287f7b0fb0862ebe812b2ef306457219..caf6e0821c3f66468a48d097c191ea54a5250efe 100644 (file)
@@ -15,7 +15,7 @@
 //config:      raidautorun tells the kernel md driver to
 //config:      search and start RAID arrays.
 
-//applet:IF_RAIDAUTORUN(APPLET(raidautorun, BB_DIR_SBIN, BB_SUID_DROP))
+//applet:IF_RAIDAUTORUN(APPLET_NOEXEC(raidautorun, raidautorun, BB_DIR_SBIN, BB_SUID_DROP, raidautorun))
 
 //kbuild:lib-$(CONFIG_RAIDAUTORUN) += raidautorun.o