setconsole: make it NOEXEC
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 6 Aug 2017 16:56:25 +0000 (18:56 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 6 Aug 2017 16:56:25 +0000 (18:56 +0200)
BTW, I failed to make it do what it meant to do.
ioctl appears to succeed, but kernel's output is not coming
to the specified console (tried on VT consoles too).
OTOH, setlogcons does work...

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
NOFORK_NOEXEC.lst
console-tools/setconsole.c

index 58b3e9c54c59cbee2c63864b18e46caf3be67f67..ec3b2a67e137dad257d42d4d5d182a7d2faf8b76 100644 (file)
@@ -305,7 +305,7 @@ sed - runner
 sendmail - runner
 seq - noexec. runner
 setarch - noexec. spawner
-setconsole
+setconsole - noexec
 setfont
 setkeycodes - noexec
 setlogcons - noexec
index fa5269ebbdc232d692aa9b3134df0f3415643d3c..9a8ca382170ce06fd1bcd136dbd5661487cd16ed 100644 (file)
@@ -20,7 +20,7 @@
 //config:      default y
 //config:      depends on SETCONSOLE && LONG_OPTS
 
-//applet:IF_SETCONSOLE(APPLET(setconsole, BB_DIR_SBIN, BB_SUID_DROP))
+//applet:IF_SETCONSOLE(APPLET_NOEXEC(setconsole, setconsole, BB_DIR_SBIN, BB_SUID_DROP, setconsole))
 
 //kbuild:lib-$(CONFIG_SETCONSOLE) += setconsole.o