aboutsummaryrefslogtreecommitdiff
path: root/selinux/setfiles.c
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2016-11-23 18:46:40 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2016-11-23 18:46:40 +0100
commita8e52da7742b2bc8a3993f7f7c3c70da8fe79848 (patch)
tree5ec3c417b56095f6768b6a7c96817c248bdea2fa /selinux/setfiles.c
parent15fb91cefb22d64952f34fe246fc8f257172af63 (diff)
downloadbusybox-a8e52da7742b2bc8a3993f7f7c3c70da8fe79848.tar.gz
busybox-a8e52da7742b2bc8a3993f7f7c3c70da8fe79848.tar.bz2
Convert all selinux/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'selinux/setfiles.c')
-rw-r--r--selinux/setfiles.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index c9597d54e..4fc307f55 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -3,6 +3,37 @@
policycoreutils was released under GPL 2.
Port to BusyBox (c) 2007 by Yuichi Nakamura <ynakam@hitachisoft.jp>
*/
+//config:config SETFILES
+//config: bool "setfiles"
+//config: default n
+//config: depends on SELINUX
+//config: help
+//config: Enable support to modify to relabel files.
+//config: Notice: If you built libselinux with -D_FILE_OFFSET_BITS=64,
+//config: (It is default in libselinux's Makefile), you _must_ enable
+//config: CONFIG_LFS.
+//config:
+//config:config FEATURE_SETFILES_CHECK_OPTION
+//config: bool "Enable check option"
+//config: default n
+//config: depends on SETFILES
+//config: help
+//config: Support "-c" option (check the validity of the contexts against
+//config: the specified binary policy) for setfiles. Requires libsepol.
+//config:
+//config:config RESTORECON
+//config: bool "restorecon"
+//config: default n
+//config: depends on SELINUX
+//config: help
+//config: Enable support to relabel files. The feature is almost
+//config: the same as setfiles, but usage is a little different.
+
+//applet:IF_SETFILES(APPLET(setfiles, BB_DIR_SBIN, BB_SUID_DROP))
+//applet:IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon))
+
+//kbuild:lib-$(CONFIG_SETFILES) += setfiles.o
+//kbuild:lib-$(CONFIG_RESTORECON) += setfiles.o
//usage:#define setfiles_trivial_usage
//usage: "[-dnpqsvW] [-e DIR]... [-o FILE] [-r alt_root_path]"