aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-08-06 12:28:00 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-08-06 12:28:00 +0200
commit9a58cc0f7fbdf967c159588e0de5f3a8dfd87db5 (patch)
treef3bb7bed7119a7ae9617dd53eb5eed218139adee
parentae17ba0924c9c0020a6455020e7841a12bd738d4 (diff)
downloadbusybox-w32-9a58cc0f7fbdf967c159588e0de5f3a8dfd87db5.tar.gz
busybox-w32-9a58cc0f7fbdf967c159588e0de5f3a8dfd87db5.tar.bz2
busybox-w32-9a58cc0f7fbdf967c159588e0de5f3a8dfd87db5.zip
tunctl: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--NOFORK_NOEXEC.lst4
-rw-r--r--networking/tunctl.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst
index c605302d9..45b178ca8 100644
--- a/NOFORK_NOEXEC.lst
+++ b/NOFORK_NOEXEC.lst
@@ -182,7 +182,7 @@ ipneigh - noexec candidate
182iproute - noexec candidate 182iproute - noexec candidate
183iprule - noexec candidate 183iprule - noexec candidate
184iptunnel - noexec candidate 184iptunnel - noexec candidate
185kbd_mode - leaks: xopen_nonblocking+xioctl 185kbd_mode - noexec. leaks: xopen_nonblocking+xioctl
186kill - NOFORK 186kill - NOFORK
187killall - NOFORK 187killall - NOFORK
188killall5 - NOFORK 188killall5 - NOFORK
@@ -365,7 +365,7 @@ true - NOFORK
365truncate - NOFORK 365truncate - NOFORK
366tty - NOFORK 366tty - NOFORK
367ttysize - NOFORK 367ttysize - NOFORK
368tunctl 368tunctl - noexec
369tune2fs - noexec. leaks: open+xfunc 369tune2fs - noexec. leaks: open+xfunc
370ubiattach 370ubiattach
371ubidetach 371ubidetach
diff --git a/networking/tunctl.c b/networking/tunctl.c
index 0a26ff7fb..4c3220025 100644
--- a/networking/tunctl.c
+++ b/networking/tunctl.c
@@ -24,7 +24,7 @@
24//config: Allow to specify owner and group of newly created interface. 24//config: Allow to specify owner and group of newly created interface.
25//config: 340 bytes of pure bloat. Say no here. 25//config: 340 bytes of pure bloat. Say no here.
26 26
27//applet:IF_TUNCTL(APPLET(tunctl, BB_DIR_SBIN, BB_SUID_DROP)) 27//applet:IF_TUNCTL(APPLET_NOEXEC(tunctl, tunctl, BB_DIR_SBIN, BB_SUID_DROP, tunctl))
28 28
29//kbuild:lib-$(CONFIG_TUNCTL) += tunctl.o 29//kbuild:lib-$(CONFIG_TUNCTL) += tunctl.o
30 30