blkdiscard: make it NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
bf18239e3d
commit
277081e0a4
@ -49,7 +49,7 @@ awk - noexec. runner
|
|||||||
base64 - runner
|
base64 - runner
|
||||||
basename - NOFORK
|
basename - NOFORK
|
||||||
beep
|
beep
|
||||||
blkdiscard
|
blkdiscard - noexec. leaks: open+xioctl
|
||||||
blkid - noexec
|
blkid - noexec
|
||||||
blockdev - noexec. leaks fd
|
blockdev - noexec. leaks fd
|
||||||
bootchartd - daemon
|
bootchartd - daemon
|
||||||
|
@ -11,8 +11,9 @@
|
|||||||
//config: help
|
//config: help
|
||||||
//config: blkdiscard discards sectors on a given device.
|
//config: blkdiscard discards sectors on a given device.
|
||||||
|
|
||||||
|
//applet:IF_BLKDISCARD(APPLET_NOEXEC(blkdiscard, blkdiscard, BB_DIR_USR_BIN, BB_SUID_DROP, blkdiscard))
|
||||||
|
|
||||||
//kbuild:lib-$(CONFIG_BLKDISCARD) += blkdiscard.o
|
//kbuild:lib-$(CONFIG_BLKDISCARD) += blkdiscard.o
|
||||||
//applet:IF_BLKDISCARD(APPLET(blkdiscard, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
|
|
||||||
//usage:#define blkdiscard_trivial_usage
|
//usage:#define blkdiscard_trivial_usage
|
||||||
//usage: "[-o OFS] [-l LEN] [-s] DEVICE"
|
//usage: "[-o OFS] [-l LEN] [-s] DEVICE"
|
||||||
@ -44,7 +45,6 @@ int blkdiscard_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
uint64_t offset; /* Leaving these two variables out does not */
|
uint64_t offset; /* Leaving these two variables out does not */
|
||||||
uint64_t length; /* shrink code size and hampers readability. */
|
uint64_t length; /* shrink code size and hampers readability. */
|
||||||
uint64_t range[2];
|
uint64_t range[2];
|
||||||
// struct stat st;
|
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
Loading…
Reference in New Issue
Block a user