svn commit: trunk/busybox: include selinux
vda at busybox.net
vda at busybox.net
Sun Oct 14 04:48:44 UTC 2007
Author: vda
Date: 2007-10-13 21:48:44 -0700 (Sat, 13 Oct 2007)
New Revision: 20255
Log:
setsebool: new applet (Yuichi Nakamura <ynakam at hitachisoft.jp>)
Modified:
trunk/busybox/include/applets.h
trunk/busybox/include/usage.h
trunk/busybox/selinux/Config.in
trunk/busybox/selinux/Kbuild
Changeset:
Modified: trunk/busybox/include/applets.h
===================================================================
--- trunk/busybox/include/applets.h 2007-10-14 02:34:20 UTC (rev 20254)
+++ trunk/busybox/include/applets.h 2007-10-14 04:48:44 UTC (rev 20255)
@@ -304,6 +304,7 @@
USE_SETFILES(APPLET(setfiles, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_SETKEYCODES(APPLET(setkeycodes, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_SETLOGCONS(APPLET(setlogcons, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
+USE_SETSEBOOL(APPLET(setsebool, _BB_DIR_USR_SBIN, _BB_SUID_NEVER))
USE_SETSID(APPLET(setsid, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, _BB_DIR_USR_BIN, _BB_SUID_NEVER, setuidgid))
USE_FEATURE_SH_IS_ASH(APPLET_NOUSAGE(sh, ash, _BB_DIR_BIN, _BB_SUID_NEVER))
Modified: trunk/busybox/include/usage.h
===================================================================
--- trunk/busybox/include/usage.h 2007-10-14 02:34:20 UTC (rev 20254)
+++ trunk/busybox/include/usage.h 2007-10-14 04:48:44 UTC (rev 20255)
@@ -3056,6 +3056,12 @@
#define setlogcons_full_usage \
"Redirect the kernel output to console N (0 for current)"
+#define setsebool_trivial_usage \
+ "boolean value"
+
+#define setsebool_full_usage \
+ "Change boolean setting"
+
#define setsid_trivial_usage \
"program [arg ...]"
#define setsid_full_usage \
Modified: trunk/busybox/selinux/Config.in
===================================================================
--- trunk/busybox/selinux/Config.in 2007-10-14 02:34:20 UTC (rev 20254)
+++ trunk/busybox/selinux/Config.in 2007-10-14 04:48:44 UTC (rev 20255)
@@ -104,5 +104,13 @@
Support "-c" option (check the validity of the contexts against
the specified binary policy) for setfiles. Requires libsepol.
+config SETSEBOOL
+ bool "setsebool"
+ default n
+ depends on SELINUX
+ help
+ Enable support for change boolean.
+ semanage and -P option is not supported yet.
+
endmenu
Modified: trunk/busybox/selinux/Kbuild
===================================================================
--- trunk/busybox/selinux/Kbuild 2007-10-14 02:34:20 UTC (rev 20254)
+++ trunk/busybox/selinux/Kbuild 2007-10-14 04:48:44 UTC (rev 20255)
@@ -16,3 +16,4 @@
lib-$(CONFIG_SETENFORCE) += setenforce.o
lib-$(CONFIG_SETFILES) += setfiles.o
lib-$(CONFIG_RESTORECON) += setfiles.o
+lib-$(CONFIG_SETSEBOOL) += setsebool.o
More information about the busybox-cvs
mailing list