diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-05 20:38:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-05 20:38:04 +0200 |
commit | 99125c04950a7ba2ac90dc21c3d924fe9dd95651 (patch) | |
tree | 3b8e6fb6844dbe17031b836faf6d941b4b6ccb1f | |
parent | d3147cd5c38d9f232a9e279562129157e871d1ee (diff) | |
download | busybox-w32-99125c04950a7ba2ac90dc21c3d924fe9dd95651.tar.gz busybox-w32-99125c04950a7ba2ac90dc21c3d924fe9dd95651.tar.bz2 busybox-w32-99125c04950a7ba2ac90dc21c3d924fe9dd95651.zip |
chattr,lsattr,tune2fs: make them NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | NOFORK_NOEXEC.lst | 6 | ||||
-rw-r--r-- | e2fsprogs/chattr.c | 2 | ||||
-rw-r--r-- | e2fsprogs/lsattr.c | 3 | ||||
-rw-r--r-- | e2fsprogs/tune2fs.c | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/NOFORK_NOEXEC.lst b/NOFORK_NOEXEC.lst index 78d06f3f5..0b6528d94 100644 --- a/NOFORK_NOEXEC.lst +++ b/NOFORK_NOEXEC.lst | |||
@@ -61,7 +61,7 @@ bzip2 - runner | |||
61 | cal - runner: cal -n9999 | 61 | cal - runner: cal -n9999 |
62 | cat - runner | 62 | cat - runner |
63 | chat - needs ^C to work | 63 | chat - needs ^C to work |
64 | chattr - runner | 64 | chattr - noexec. runner |
65 | chgrp - noexec. runner | 65 | chgrp - noexec. runner |
66 | chmod - noexec. runner | 66 | chmod - noexec. runner |
67 | chown - noexec. runner | 67 | chown - noexec. runner |
@@ -204,7 +204,7 @@ lpd - daemon | |||
204 | lpq - runner | 204 | lpq - runner |
205 | lpr - runner | 205 | lpr - runner |
206 | ls - noexec. runner | 206 | ls - noexec. runner |
207 | lsattr - runner. noexec candidate (ls is, why not this one?) | 207 | lsattr - noexec. runner |
208 | lsmod - noexec | 208 | lsmod - noexec |
209 | lsof - complex | 209 | lsof - complex |
210 | lspci - noexec candidate, too rare to bother for nofork | 210 | lspci - noexec candidate, too rare to bother for nofork |
@@ -366,7 +366,7 @@ truncate - NOFORK | |||
366 | tty - NOFORK | 366 | tty - NOFORK |
367 | ttysize - NOFORK | 367 | ttysize - NOFORK |
368 | tunctl | 368 | tunctl |
369 | tune2fs - leaks: open+xfunc | 369 | tune2fs - noexec. leaks: open+xfunc |
370 | ubiattach | 370 | ubiattach |
371 | ubidetach | 371 | ubidetach |
372 | ubimkvol | 372 | ubimkvol |
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c index bb870a990..76a5253b6 100644 --- a/e2fsprogs/chattr.c +++ b/e2fsprogs/chattr.c | |||
@@ -15,7 +15,7 @@ | |||
15 | //config: help | 15 | //config: help |
16 | //config: chattr changes the file attributes on a second extended file system. | 16 | //config: chattr changes the file attributes on a second extended file system. |
17 | 17 | ||
18 | //applet:IF_CHATTR(APPLET(chattr, BB_DIR_BIN, BB_SUID_DROP)) | 18 | //applet:IF_CHATTR(APPLET_NOEXEC(chattr, chattr, BB_DIR_BIN, BB_SUID_DROP, chattr)) |
19 | 19 | ||
20 | //kbuild:lib-$(CONFIG_CHATTR) += chattr.o e2fs_lib.o | 20 | //kbuild:lib-$(CONFIG_CHATTR) += chattr.o e2fs_lib.o |
21 | 21 | ||
diff --git a/e2fsprogs/lsattr.c b/e2fsprogs/lsattr.c index 756d26832..56c1187c1 100644 --- a/e2fsprogs/lsattr.c +++ b/e2fsprogs/lsattr.c | |||
@@ -16,7 +16,8 @@ | |||
16 | //config: help | 16 | //config: help |
17 | //config: lsattr lists the file attributes on a second extended file system. | 17 | //config: lsattr lists the file attributes on a second extended file system. |
18 | 18 | ||
19 | //applet:IF_LSATTR(APPLET(lsattr, BB_DIR_BIN, BB_SUID_DROP)) | 19 | //applet:IF_LSATTR(APPLET_NOEXEC(lsattr, lsattr, BB_DIR_BIN, BB_SUID_DROP, lsattr)) |
20 | /* ls is NOEXEC, so we should be too! ;) */ | ||
20 | 21 | ||
21 | //kbuild:lib-$(CONFIG_LSATTR) += lsattr.o e2fs_lib.o | 22 | //kbuild:lib-$(CONFIG_LSATTR) += lsattr.o e2fs_lib.o |
22 | 23 | ||
diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c index 95411db5f..9f14b26ec 100644 --- a/e2fsprogs/tune2fs.c +++ b/e2fsprogs/tune2fs.c | |||
@@ -13,7 +13,7 @@ | |||
13 | //config: tune2fs allows the system administrator to adjust various tunable | 13 | //config: tune2fs allows the system administrator to adjust various tunable |
14 | //config: filesystem parameters on Linux ext2/ext3 filesystems. | 14 | //config: filesystem parameters on Linux ext2/ext3 filesystems. |
15 | 15 | ||
16 | //applet:IF_TUNE2FS(APPLET(tune2fs, BB_DIR_SBIN, BB_SUID_DROP)) | 16 | //applet:IF_TUNE2FS(APPLET_NOEXEC(tune2fs, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, tune2fs)) |
17 | 17 | ||
18 | //TODO alias to "tune2fs -L LABEL": //applet:IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label)) | 18 | //TODO alias to "tune2fs -L LABEL": //applet:IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label)) |
19 | 19 | ||