setfiles,restorecon: new SELinux applets by Yuichi Nakamura <ynakam@hitachisoft.jp>

This commit is contained in:
Denis Vlasenko
2007-07-23 14:03:30 +00:00
parent 845db2acf3
commit 397137b815
5 changed files with 773 additions and 0 deletions

View File

@@ -49,6 +49,14 @@ config MATCHPATHCON
Enable support to get default security context of the
specified path from the file contexts configuration.
config RESTORECON
bool "restorecon"
default n
depends on SELINUX
help
Enable support to relabel files. The feature is almost
the same as setfiles, but usage is a little different.
config RUNCON
bool "runcon"
default n
@@ -78,5 +86,23 @@ config SETENFORCE
help
Enable support to modify the mode SELinux is running in.
config SETFILES
bool "setfiles"
default n
depends on SELINUX
help
Enable support to modify to relabel files.
Notice: If you built libselinux with -D_FILE_OFFSET_BITS=64,
(It is default in libselinux's Makefile), you _must_ enable
CONFIG_LFS.
config FEATURE_SETFILES_CHECK_OPTION
bool "Enable check option"
default n
depends on SETFILES
help
Support "-c" option (check the validity of the contexts against
the specified binary policy) for setfiles. Requires libsepol.
endmenu