aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-03 19:30:21 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-03 19:30:21 +0200
commit72d725d7cc6d5cd8ad6c69f7efb3b7046931395b (patch)
treed27e4510693b6e1476c30ce02034c5e6969844fa
parent39194f030918b87eeb3e11e94cfa05f575fb47b4 (diff)
downloadbusybox-72d725d7cc6d5cd8ad6c69f7efb3b7046931395b.tar.gz
getopt: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--NOFORK_NOEXEC.lst26
-rw-r--r--util-linux/getopt.c2
2 files changed, 14 insertions, 14 deletions
diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst
index 7073611a4..9fcef7823 100644
--- a/NOFORK_NOEXEC.lst
+++ b/NOFORK_NOEXEC.lst
@@ -129,7 +129,7 @@ ftpd - daemon
ftpget - runner
ftpput - runner
fuser - complex
-getopt
+getopt - noexec. complex (many allocs)
getty - interactive
grep - runner
groups - noexec
@@ -160,16 +160,16 @@ insmod
install - runner
ionice - spawner
iostat - runner
-ip
-ipaddr
-ipcalc
-ipcrm
-ipcs
-iplink
-ipneigh
-iproute
-iprule
-iptunnel
+ip - noexec candidate
+ipaddr - noexec candidate
+ipcalc - noexec candidate
+ipcrm - noexec candidate
+ipcs - noexec candidate
+iplink - noexec candidate
+ipneigh - noexec candidate
+iproute - noexec candidate
+iprule - noexec candidate
+iptunnel - noexec candidate
kbd_mode
kill - NOFORK
killall - NOFORK
@@ -257,8 +257,8 @@ poweroff - rare
powertop - interactive, longterm
printenv - NOFORK
printf - NOFORK
-ps
-pscan
+ps - noexec candidate
+pscan - longterm
pstree
pwd - NOFORK
pwdx - NOFORK
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index cf1bc592f..5fe0da7cd 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -47,7 +47,7 @@
//config: help
//config: Enable support for long options (option -l).
-//applet:IF_GETOPT(APPLET(getopt, BB_DIR_BIN, BB_SUID_DROP))
+//applet:IF_GETOPT(APPLET_NOEXEC(getopt, getopt, BB_DIR_BIN, BB_SUID_DROP, getopt))
//kbuild:lib-$(CONFIG_GETOPT) += getopt.o