summaryrefslogtreecommitdiff
path: root/selinux/runcon.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-11-23 18:46:40 +0100
committerDenys Vlasenko2016-11-23 18:46:40 +0100
commita8e52da7742b2bc8a3993f7f7c3c70da8fe79848 (patch)
tree5ec3c417b56095f6768b6a7c96817c248bdea2fa /selinux/runcon.c
parent15fb91cefb22d64952f34fe246fc8f257172af63 (diff)
downloadbusybox-a8e52da7742b2bc8a3993f7f7c3c70da8fe79848.zip
busybox-a8e52da7742b2bc8a3993f7f7c3c70da8fe79848.tar.gz
Convert all selinux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'selinux/runcon.c')
-rw-r--r--selinux/runcon.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/selinux/runcon.c b/selinux/runcon.c
index 27f2be3..366834e 100644
--- a/selinux/runcon.c
+++ b/selinux/runcon.c
@@ -28,6 +28,23 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+//config:config RUNCON
+//config: bool "runcon"
+//config: default n
+//config: depends on SELINUX
+//config: help
+//config: Enable support to run command in specified security context.
+//config:
+//config:config FEATURE_RUNCON_LONG_OPTIONS
+//config: bool "Enable long options"
+//config: default y
+//config: depends on RUNCON && LONG_OPTS
+//config: help
+//config: Support long options for the runcon applet.
+
+//applet:IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_RUNCON) += runcon.o
//usage:#define runcon_trivial_usage
//usage: "[-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] PROG ARGS\n"