diff options
Diffstat (limited to 'selinux/setfiles.c')
| -rw-r--r-- | selinux/setfiles.c | 31 |
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 @@ | |||
| 3 | policycoreutils was released under GPL 2. | 3 | policycoreutils was released under GPL 2. |
| 4 | Port to BusyBox (c) 2007 by Yuichi Nakamura <ynakam@hitachisoft.jp> | 4 | Port to BusyBox (c) 2007 by Yuichi Nakamura <ynakam@hitachisoft.jp> |
| 5 | */ | 5 | */ |
| 6 | //config:config SETFILES | ||
| 7 | //config: bool "setfiles" | ||
| 8 | //config: default n | ||
| 9 | //config: depends on SELINUX | ||
| 10 | //config: help | ||
| 11 | //config: Enable support to modify to relabel files. | ||
| 12 | //config: Notice: If you built libselinux with -D_FILE_OFFSET_BITS=64, | ||
| 13 | //config: (It is default in libselinux's Makefile), you _must_ enable | ||
| 14 | //config: CONFIG_LFS. | ||
| 15 | //config: | ||
| 16 | //config:config FEATURE_SETFILES_CHECK_OPTION | ||
| 17 | //config: bool "Enable check option" | ||
| 18 | //config: default n | ||
| 19 | //config: depends on SETFILES | ||
| 20 | //config: help | ||
| 21 | //config: Support "-c" option (check the validity of the contexts against | ||
| 22 | //config: the specified binary policy) for setfiles. Requires libsepol. | ||
| 23 | //config: | ||
| 24 | //config:config RESTORECON | ||
| 25 | //config: bool "restorecon" | ||
| 26 | //config: default n | ||
| 27 | //config: depends on SELINUX | ||
| 28 | //config: help | ||
| 29 | //config: Enable support to relabel files. The feature is almost | ||
| 30 | //config: the same as setfiles, but usage is a little different. | ||
| 31 | |||
| 32 | //applet:IF_SETFILES(APPLET(setfiles, BB_DIR_SBIN, BB_SUID_DROP)) | ||
| 33 | //applet:IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon)) | ||
| 34 | |||
| 35 | //kbuild:lib-$(CONFIG_SETFILES) += setfiles.o | ||
| 36 | //kbuild:lib-$(CONFIG_RESTORECON) += setfiles.o | ||
| 6 | 37 | ||
| 7 | //usage:#define setfiles_trivial_usage | 38 | //usage:#define setfiles_trivial_usage |
| 8 | //usage: "[-dnpqsvW] [-e DIR]... [-o FILE] [-r alt_root_path]" | 39 | //usage: "[-dnpqsvW] [-e DIR]... [-o FILE] [-r alt_root_path]" |
