blockdev, fsfreeze, fstrim, mountpoint: make NOEXEC
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
b182e9ad60
commit
9f59849daa
@ -51,7 +51,7 @@ basename - NOFORK
|
|||||||
beep
|
beep
|
||||||
blkdiscard
|
blkdiscard
|
||||||
blkid
|
blkid
|
||||||
blockdev - noexec candidate (rather simple), leaks fd
|
blockdev - noexec. leaks fd
|
||||||
bootchartd - daemon
|
bootchartd - daemon
|
||||||
brctl
|
brctl
|
||||||
bunzip2 - runner
|
bunzip2 - runner
|
||||||
@ -134,8 +134,8 @@ free - nofork candidate(struct globals, needs to close /proc/meminfo fd)
|
|||||||
freeramdisk - leaks: open+ioctl_or_perror_and_die
|
freeramdisk - leaks: open+ioctl_or_perror_and_die
|
||||||
fsck - interactive, longterm
|
fsck - interactive, longterm
|
||||||
fsck.minix - needs ^C
|
fsck.minix - needs ^C
|
||||||
fsfreeze - noexec candidate (it's very simple), leaks: open+xioctl
|
fsfreeze - noexec. leaks: open+xioctl
|
||||||
fstrim - noexec candidate (it's very simple), leaks: open+xioctl, find_block_device -> readdir+xstrdup
|
fstrim - noexec. leaks: open+xioctl, find_block_device -> readdir+xstrdup
|
||||||
fsync - NOFORK
|
fsync - NOFORK
|
||||||
ftpd - daemon
|
ftpd - daemon
|
||||||
ftpget - runner
|
ftpget - runner
|
||||||
@ -236,7 +236,7 @@ modinfo - noexec
|
|||||||
modprobe - noexec
|
modprobe - noexec
|
||||||
more - interactive, longterm
|
more - interactive, longterm
|
||||||
mount - suid
|
mount - suid
|
||||||
mountpoint - noexec candidate, leaks: option -n "print dev name": find_block_device -> readdir+xstrdup
|
mountpoint - noexec. leaks: option -n "print dev name": find_block_device -> readdir+xstrdup
|
||||||
mpstat - noexec candidate (it's a measuring tool, putting less load by itself is good), complex
|
mpstat - noexec candidate (it's a measuring tool, putting less load by itself is good), complex
|
||||||
mt - rare
|
mt - rare
|
||||||
mv - noexec candidate, runner
|
mv - noexec candidate, runner
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
//config: help
|
//config: help
|
||||||
//config: Performs some ioctls with block devices.
|
//config: Performs some ioctls with block devices.
|
||||||
|
|
||||||
//applet:IF_BLOCKDEV(APPLET(blockdev, BB_DIR_SBIN, BB_SUID_DROP))
|
//applet:IF_BLOCKDEV(APPLET_NOEXEC(blockdev, blockdev, BB_DIR_SBIN, BB_SUID_DROP, blockdev))
|
||||||
|
|
||||||
//kbuild:lib-$(CONFIG_BLOCKDEV) += blockdev.o
|
//kbuild:lib-$(CONFIG_BLOCKDEV) += blockdev.o
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
//config: help
|
//config: help
|
||||||
//config: Halt new accesses and flush writes on a mounted filesystem.
|
//config: Halt new accesses and flush writes on a mounted filesystem.
|
||||||
|
|
||||||
//applet:IF_FSFREEZE(APPLET(fsfreeze, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
//applet:IF_FSFREEZE(APPLET_NOEXEC(fsfreeze, fsfreeze, BB_DIR_USR_SBIN, BB_SUID_DROP, fsfreeze))
|
||||||
|
|
||||||
//kbuild:lib-$(CONFIG_FSFREEZE) += fsfreeze.o
|
//kbuild:lib-$(CONFIG_FSFREEZE) += fsfreeze.o
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
//config: help
|
//config: help
|
||||||
//config: Discard unused blocks on a mounted filesystem.
|
//config: Discard unused blocks on a mounted filesystem.
|
||||||
|
|
||||||
//applet:IF_FSTRIM(APPLET(fstrim, BB_DIR_SBIN, BB_SUID_DROP))
|
//applet:IF_FSTRIM(APPLET_NOEXEC(fstrim, fstrim, BB_DIR_SBIN, BB_SUID_DROP, fstrim))
|
||||||
|
|
||||||
//kbuild:lib-$(CONFIG_FSTRIM) += fstrim.o
|
//kbuild:lib-$(CONFIG_FSTRIM) += fstrim.o
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
//config: help
|
//config: help
|
||||||
//config: mountpoint checks if the directory is a mountpoint.
|
//config: mountpoint checks if the directory is a mountpoint.
|
||||||
|
|
||||||
//applet:IF_MOUNTPOINT(APPLET(mountpoint, BB_DIR_BIN, BB_SUID_DROP))
|
//applet:IF_MOUNTPOINT(APPLET_NOEXEC(mountpoint, mountpoint, BB_DIR_BIN, BB_SUID_DROP, mountpoint))
|
||||||
|
|
||||||
//kbuild:lib-$(CONFIG_MOUNTPOINT) += mountpoint.o
|
//kbuild:lib-$(CONFIG_MOUNTPOINT) += mountpoint.o
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user