stty: make in NOEXEC
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Aug 2017 18:07:19 +0000 (20:07 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Aug 2017 18:07:19 +0000 (20:07 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
NOFORK_NOEXEC.lst
coreutils/stty.c

index 5ec9ae3fe8a91dc7c3aac38072a9388b372c47cc..ad49cd8099a76d002d48ab2072c9b15bb3cc1383 100644 (file)
@@ -244,7 +244,7 @@ nameif - leaks: config_open2+ioctl_or_perror_and_die
 nbd-client
 nc - runner
 netstat - runner with -c
-nice - noexec candidate, spawner
+nice - noexec. spawner
 nl - runner
 nmeter - longterm
 nohup - noexec. spawner
@@ -284,7 +284,7 @@ reboot - rare
 reformime - runner
 remove-shell
 renice - nofork candidate(uses getpwnam, is that ok?)
-reset - noexec candidate, spawner (execs "stty")
+reset - noexec. spawner (execs "stty")
 resize - noexec. changes state (signal handlers)
 rev - runner
 rm - noexec. rm -i interactive
@@ -330,7 +330,7 @@ ssl_client - longterm
 start-stop-daemon
 stat - nofork candidate(needs fewer allocs)
 strings - runner
-stty - noexec/nofork candidate. has no allocs or opens except xmove_fd(xopen("-F DEVICE"),STDIN). tcsetattr(STDIN) is not a problem: it would work the same across processes sharing this fd
+stty - noexec. nofork candidate: has no allocs or opens except xmove_fd(xopen("-F DEVICE"),STDIN). tcsetattr(STDIN) is not a problem: it would work the same across processes sharing this fd
 su - suid, spawner
 sulogin - noexec. spawner
 sum - runner
index f987fbbcf37628b44e53b1b2f79dd027b4803a2a..d09f0e4531c3d09a4bbe52d69fff20b85cdf1e75 100644 (file)
@@ -25,7 +25,7 @@
 //config:      help
 //config:      stty is used to change and print terminal line settings.
 
-//applet:IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP))
+//applet:IF_STTY(APPLET_NOEXEC(stty, stty, BB_DIR_BIN, BB_SUID_DROP, stty))
 
 //kbuild:lib-$(CONFIG_STTY) += stty.o