diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-14 14:32:11 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-01-14 14:32:11 +0100 |
commit | cbdc37cae079d6b52ca39fb6c1dd6eadab48b617 (patch) | |
tree | 1ebe59878ee213667665e6dcca3c6faa9f65a45b | |
parent | 586f1ee7cfcb442caf467a4ea5fb9351ef3c0d11 (diff) | |
download | busybox-cbdc37cae079d6b52ca39fb6c1dd6eadab48b617.tar.gz |
cal: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | NOFORK_NOEXEC.lst | 2 | ||||
-rw-r--r-- | util-linux/cal.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst index 72c33ddd7..21a3b41fa 100644 --- a/NOFORK_NOEXEC.lst +++ b/NOFORK_NOEXEC.lst @@ -72,7 +72,7 @@ brctl - noexec bunzip2 - runner bzcat - runner bzip2 - runner -cal - runner: cal -n9999 +cal - noexec. can be runner: cal -n9999 cat - runner: cat HUGEFILE chat - longterm (when used as intended - talking to modem over stdin/out) chattr - noexec. runner diff --git a/util-linux/cal.c b/util-linux/cal.c index 10df0ae8b..a4a20d5f0 100644 --- a/util-linux/cal.c +++ b/util-linux/cal.c @@ -16,7 +16,8 @@ //config: help //config: cal is used to display a monthly calendar. -//applet:IF_CAL(APPLET(cal, BB_DIR_USR_BIN, BB_SUID_DROP)) +//applet:IF_CAL(APPLET_NOEXEC(cal, cal, BB_DIR_USR_BIN, BB_SUID_DROP, cal)) +/* NOEXEC despite rare cases when it can be a "runner" (e.g. cal -n12000 takes you into years 30xx) */ //kbuild:lib-$(CONFIG_CAL) += cal.o |