aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-01-14 14:32:11 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-01-14 14:32:11 +0100
commitcbdc37cae079d6b52ca39fb6c1dd6eadab48b617 (patch)
tree1ebe59878ee213667665e6dcca3c6faa9f65a45b /util-linux
parent586f1ee7cfcb442caf467a4ea5fb9351ef3c0d11 (diff)
downloadbusybox-cbdc37cae079d6b52ca39fb6c1dd6eadab48b617.tar.gz
cal: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/cal.c3
1 files changed, 2 insertions, 1 deletions
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