free,stat: make NOEXEC
pkill/pgrep/pidof uncovered another quirk: what about noexec's _process names_? Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -30,6 +30,10 @@
|
||||
//config: of the pidof, in other words the calling shell or shell script.
|
||||
|
||||
//applet:IF_PIDOF(APPLET(pidof, BB_DIR_BIN, BB_SUID_DROP))
|
||||
/* can't be noexec: can find _itself_ under wrong name, since after fork only,
|
||||
* /proc/PID/cmdline and comm are wrong! Can fix comm (prctl(PR_SET_NAME)),
|
||||
* but cmdline?
|
||||
*/
|
||||
|
||||
//kbuild:lib-$(CONFIG_PIDOF) += pidof.o
|
||||
|
||||
|
||||
Reference in New Issue
Block a user