diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-04 20:07:19 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-04 20:07:19 +0200 |
| commit | 692eeb81a4c54d7d8bf0d2e370c12762b2a16ff7 (patch) | |
| tree | c784fe7b053a577ffa4c80373516ace4a1407d91 | |
| parent | 5c527dc57e74c1b60c910dc1a3f3ec9683fca43d (diff) | |
| download | busybox-w32-692eeb81a4c54d7d8bf0d2e370c12762b2a16ff7.tar.gz busybox-w32-692eeb81a4c54d7d8bf0d2e370c12762b2a16ff7.tar.bz2 busybox-w32-692eeb81a4c54d7d8bf0d2e370c12762b2a16ff7.zip | |
stty: make in NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | NOFORK_NOEXEC.lst | 6 | ||||
| -rw-r--r-- | coreutils/stty.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst index 5ec9ae3fe..ad49cd809 100644 --- a/NOFORK_NOEXEC.lst +++ b/NOFORK_NOEXEC.lst | |||
| @@ -244,7 +244,7 @@ nameif - leaks: config_open2+ioctl_or_perror_and_die | |||
| 244 | nbd-client | 244 | nbd-client |
| 245 | nc - runner | 245 | nc - runner |
| 246 | netstat - runner with -c | 246 | netstat - runner with -c |
| 247 | nice - noexec candidate, spawner | 247 | nice - noexec. spawner |
| 248 | nl - runner | 248 | nl - runner |
| 249 | nmeter - longterm | 249 | nmeter - longterm |
| 250 | nohup - noexec. spawner | 250 | nohup - noexec. spawner |
| @@ -284,7 +284,7 @@ reboot - rare | |||
| 284 | reformime - runner | 284 | reformime - runner |
| 285 | remove-shell | 285 | remove-shell |
| 286 | renice - nofork candidate(uses getpwnam, is that ok?) | 286 | renice - nofork candidate(uses getpwnam, is that ok?) |
| 287 | reset - noexec candidate, spawner (execs "stty") | 287 | reset - noexec. spawner (execs "stty") |
| 288 | resize - noexec. changes state (signal handlers) | 288 | resize - noexec. changes state (signal handlers) |
| 289 | rev - runner | 289 | rev - runner |
| 290 | rm - noexec. rm -i interactive | 290 | rm - noexec. rm -i interactive |
| @@ -330,7 +330,7 @@ ssl_client - longterm | |||
| 330 | start-stop-daemon | 330 | start-stop-daemon |
| 331 | stat - nofork candidate(needs fewer allocs) | 331 | stat - nofork candidate(needs fewer allocs) |
| 332 | strings - runner | 332 | strings - runner |
| 333 | 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 | 333 | 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 |
| 334 | su - suid, spawner | 334 | su - suid, spawner |
| 335 | sulogin - noexec. spawner | 335 | sulogin - noexec. spawner |
| 336 | sum - runner | 336 | sum - runner |
diff --git a/coreutils/stty.c b/coreutils/stty.c index f987fbbcf..d09f0e453 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
| @@ -25,7 +25,7 @@ | |||
| 25 | //config: help | 25 | //config: help |
| 26 | //config: stty is used to change and print terminal line settings. | 26 | //config: stty is used to change and print terminal line settings. |
| 27 | 27 | ||
| 28 | //applet:IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP)) | 28 | //applet:IF_STTY(APPLET_NOEXEC(stty, stty, BB_DIR_BIN, BB_SUID_DROP, stty)) |
| 29 | 29 | ||
| 30 | //kbuild:lib-$(CONFIG_STTY) += stty.o | 30 | //kbuild:lib-$(CONFIG_STTY) += stty.o |
| 31 | 31 | ||
