aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NOFORK_NOEXEC.lst4
-rw-r--r--coreutils/cp.c1
-rw-r--r--coreutils/mv.c3
3 files changed, 5 insertions, 3 deletions
diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst
index 21a3b41fa..055f9fb24 100644
--- a/NOFORK_NOEXEC.lst
+++ b/NOFORK_NOEXEC.lst
@@ -89,7 +89,7 @@ clear - NOFORK
89cmp - runner 89cmp - runner
90comm - runner 90comm - runner
91conspy - interactive, longterm 91conspy - interactive, longterm
92cp - noexec. runner 92cp - noexec. sometimes runner
93cpio - runner 93cpio - runner
94crond - daemon 94crond - daemon
95crontab - longterm (runs $EDITOR), leaks: open+xasprintf 95crontab - longterm (runs $EDITOR), leaks: open+xasprintf
@@ -255,7 +255,7 @@ mount - suid
255mountpoint - noexec. leaks: option -n "print dev name": find_block_device -> readdir+xstrdup 255mountpoint - noexec. leaks: option -n "print dev name": find_block_device -> readdir+xstrdup
256mpstat - longterm: "mpstat 1" runs indefinitely 256mpstat - longterm: "mpstat 1" runs indefinitely
257mt - hardware 257mt - hardware
258mv - noexec candidate, runner 258mv - noexec. sometimes runner
259nameif - noexec. openlog(), leaks: config_open2+ioctl_or_perror_and_die 259nameif - noexec. openlog(), leaks: config_open2+ioctl_or_perror_and_die
260nbd-client - noexec 260nbd-client - noexec
261nc - runner 261nc - runner
diff --git a/coreutils/cp.c b/coreutils/cp.c
index 5b34c27e7..05c725cd0 100644
--- a/coreutils/cp.c
+++ b/coreutils/cp.c
@@ -26,6 +26,7 @@
26//config: Also add support for --parents option. 26//config: Also add support for --parents option.
27 27
28//applet:IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp)) 28//applet:IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp))
29/* NOEXEC despite cases when it can be a "runner" (cp -r LARGE_DIR NEW_DIR) */
29 30
30//kbuild:lib-$(CONFIG_CP) += cp.o 31//kbuild:lib-$(CONFIG_CP) += cp.o
31 32
diff --git a/coreutils/mv.c b/coreutils/mv.c
index 10cbc506f..aeafd1e40 100644
--- a/coreutils/mv.c
+++ b/coreutils/mv.c
@@ -17,7 +17,8 @@
17//config: help 17//config: help
18//config: mv is used to move or rename files or directories. 18//config: mv is used to move or rename files or directories.
19 19
20//applet:IF_MV(APPLET(mv, BB_DIR_BIN, BB_SUID_DROP)) 20//applet:IF_MV(APPLET_NOEXEC(mv, mv, BB_DIR_BIN, BB_SUID_DROP, mv))
21/* NOEXEC despite cases when it can be a "runner" (mv LARGE_DIR OTHER_FS) */
21 22
22//kbuild:lib-$(CONFIG_MV) += mv.o 23//kbuild:lib-$(CONFIG_MV) += mv.o
23 24