mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 18:33:06 +00:00
SELinux: load_policy applet
This commit is contained in:
parent
5b27fbe990
commit
1fc6e56684
@ -180,6 +180,7 @@ USE_SETARCH(APPLET_NOUSAGE(linux32, setarch, _BB_DIR_BIN, _BB_SUID_NEVER))
|
|||||||
USE_SETARCH(APPLET_NOUSAGE(linux64, setarch, _BB_DIR_BIN, _BB_SUID_NEVER))
|
USE_SETARCH(APPLET_NOUSAGE(linux64, setarch, _BB_DIR_BIN, _BB_SUID_NEVER))
|
||||||
USE_FEATURE_INITRD(APPLET_NOUSAGE(linuxrc, init, _BB_DIR_ROOT, _BB_SUID_NEVER))
|
USE_FEATURE_INITRD(APPLET_NOUSAGE(linuxrc, init, _BB_DIR_ROOT, _BB_SUID_NEVER))
|
||||||
USE_LN(APPLET(ln, _BB_DIR_BIN, _BB_SUID_NEVER))
|
USE_LN(APPLET(ln, _BB_DIR_BIN, _BB_SUID_NEVER))
|
||||||
|
USE_LOAD_POLICY(APPLET(load_policy, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
|
||||||
USE_LOADFONT(APPLET(loadfont, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
|
USE_LOADFONT(APPLET(loadfont, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
|
||||||
USE_LOADKMAP(APPLET(loadkmap, _BB_DIR_SBIN, _BB_SUID_NEVER))
|
USE_LOADKMAP(APPLET(loadkmap, _BB_DIR_SBIN, _BB_SUID_NEVER))
|
||||||
USE_LOGGER(APPLET(logger, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
|
USE_LOGGER(APPLET(logger, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
|
||||||
|
@ -1758,6 +1758,10 @@
|
|||||||
"$ ls -l /tmp/ls\n" \
|
"$ ls -l /tmp/ls\n" \
|
||||||
"lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*\n"
|
"lrwxrwxrwx 1 root root 7 Apr 12 18:39 ls -> BusyBox*\n"
|
||||||
|
|
||||||
|
#define load_policy_trivial_usage \
|
||||||
|
"[FILE]"
|
||||||
|
#define load_policy_full_usage
|
||||||
|
|
||||||
#define loadfont_trivial_usage \
|
#define loadfont_trivial_usage \
|
||||||
"< font"
|
"< font"
|
||||||
#define loadfont_full_usage \
|
#define loadfont_full_usage \
|
||||||
|
@ -34,6 +34,13 @@ config GETSEBOOL
|
|||||||
help
|
help
|
||||||
Enable support to get SELinux boolean values.
|
Enable support to get SELinux boolean values.
|
||||||
|
|
||||||
|
config LOAD_POLICY
|
||||||
|
bool "load_policy"
|
||||||
|
default n
|
||||||
|
depends on SELINUX
|
||||||
|
help
|
||||||
|
Enable support to load SELinux policy.
|
||||||
|
|
||||||
config MATCHPATHCON
|
config MATCHPATHCON
|
||||||
bool "matchpathcon"
|
bool "matchpathcon"
|
||||||
default n
|
default n
|
||||||
|
@ -9,6 +9,7 @@ lib-y:=
|
|||||||
lib-$(CONFIG_CHCON) += chcon.o
|
lib-$(CONFIG_CHCON) += chcon.o
|
||||||
lib-$(CONFIG_GETENFORCE) += getenforce.o
|
lib-$(CONFIG_GETENFORCE) += getenforce.o
|
||||||
lib-$(CONFIG_GETSEBOOL) += getsebool.o
|
lib-$(CONFIG_GETSEBOOL) += getsebool.o
|
||||||
|
lib-$(CONFIG_LOAD_POLICY) += load_policy.o
|
||||||
lib-$(CONFIG_MATCHPATHCON) += matchpathcon.o
|
lib-$(CONFIG_MATCHPATHCON) += matchpathcon.o
|
||||||
lib-$(CONFIG_RUNCON) += runcon.o
|
lib-$(CONFIG_RUNCON) += runcon.o
|
||||||
lib-$(CONFIG_SELINUXENABLED) += selinuxenabled.o
|
lib-$(CONFIG_SELINUXENABLED) += selinuxenabled.o
|
||||||
|
Loading…
Reference in New Issue
Block a user