make 17 state-changing execing applets (ex: "nice PROG ARGS") noexec
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Aug 2017 17:55:01 +0000 (19:55 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Aug 2017 17:55:01 +0000 (19:55 +0200)
commit5c527dc57e74c1b60c910dc1a3f3ec9683fca43d
tree03bbbda1f4869c079f381bea45c1cdbf6fcd35a7
parent6514785f95878911b3ec88e2367234df74c14cd4
make 17 state-changing execing applets (ex: "nice PROG ARGS") noexec

The applets with "<applet> [opts] PROG ARGS" API very quickly exec
another program, noexec is okay for them:

 chpst/envdir/envuidgid/softlimit/setuidgid
 chroot
 chrt
 ionice
 nice
 nohup
 setarch/linux32/linux64
 taskset
 cttyhack

"reset" and "sulogin" applets don't have this form, but also exec
another program at once, thus made noexec too.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 files changed:
NOFORK_NOEXEC.lst
console-tools/reset.c
coreutils/chroot.c
coreutils/nice.c
coreutils/nohup.c
loginutils/sulogin.c
runit/chpst.c
shell/cttyhack.c
util-linux/chrt.c
util-linux/ionice.c
util-linux/setarch.c
util-linux/taskset.c