From c6ce1c9ca3e20ad8441a5aa2f3bda4f57180224e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 9 Aug 2017 19:24:19 +0200 Subject: ipcrm,ipcs: make them NOEXEC Signed-off-by: Denys Vlasenko --- util-linux/ipcs.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'util-linux/ipcs.c') diff --git a/util-linux/ipcs.c b/util-linux/ipcs.c index 1404930d4..f0d405d67 100644 --- a/util-linux/ipcs.c +++ b/util-linux/ipcs.c @@ -15,26 +15,10 @@ //config: The ipcs utility is used to provide information on the currently //config: allocated System V interprocess (IPC) objects in the system. -//applet:IF_IPCS(APPLET(ipcs, BB_DIR_USR_BIN, BB_SUID_DROP)) +//applet:IF_IPCS(APPLET_NOEXEC(ipcs, ipcs, BB_DIR_USR_BIN, BB_SUID_DROP, ipcs)) //kbuild:lib-$(CONFIG_IPCS) += ipcs.o -//usage:#define ipcs_trivial_usage -//usage: "[[-smq] -i shmid] | [[-asmq] [-tcplu]]" -//usage:#define ipcs_full_usage "\n\n" -//usage: " -i Show specific resource" -//usage: "\nResource specification:" -//usage: "\n -m Shared memory segments" -//usage: "\n -q Message queues" -//usage: "\n -s Semaphore arrays" -//usage: "\n -a All (default)" -//usage: "\nOutput format:" -//usage: "\n -t Time" -//usage: "\n -c Creator" -//usage: "\n -p Pid" -//usage: "\n -l Limits" -//usage: "\n -u Summary" - /* X/OPEN tells us to use for semctl() */ /* X/OPEN tells us to use for msgctl() */ /* X/OPEN tells us to use for shmctl() */ @@ -585,6 +569,22 @@ static void print_sem(int semid) bb_putchar('\n'); } +//usage:#define ipcs_trivial_usage +//usage: "[[-smq] -i shmid] | [[-asmq] [-tcplu]]" +//usage:#define ipcs_full_usage "\n\n" +//usage: " -i Show specific resource" +//usage: "\nResource specification:" +//usage: "\n -m Shared memory segments" +//usage: "\n -q Message queues" +//usage: "\n -s Semaphore arrays" +//usage: "\n -a All (default)" +//usage: "\nOutput format:" +//usage: "\n -t Time" +//usage: "\n -c Creator" +//usage: "\n -p Pid" +//usage: "\n -l Limits" +//usage: "\n -u Summary" + int ipcs_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int ipcs_main(int argc UNUSED_PARAM, char **argv) { -- cgit v1.2.3