← Commit list

cbdc37cae

Denys Vlasenko
Denys Vlasenko
2018-01-14
SUCCESS Duration: 143s

Subject

cal: make it NOEXEC

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

NOFORK_NOEXEC.lst+1 -1
@@ -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
util-linux/cal.c+2 -1
@@ -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