diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-14 04:48:44 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-10-14 04:48:44 +0000 |
commit | be039374f3bd1c76535387ac4d079506804be270 (patch) | |
tree | 1f7dbab3c217ea7ce4b5962913cb707672a65bd9 | |
parent | 4a4575686eca96e7d393ba5c08ae3549bed2c1f0 (diff) | |
download | busybox-w32-be039374f3bd1c76535387ac4d079506804be270.tar.gz busybox-w32-be039374f3bd1c76535387ac4d079506804be270.tar.bz2 busybox-w32-be039374f3bd1c76535387ac4d079506804be270.zip |
setsebool: new applet (Yuichi Nakamura <ynakam@hitachisoft.jp>)
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 6 | ||||
-rw-r--r-- | selinux/Config.in | 8 | ||||
-rw-r--r-- | selinux/Kbuild | 1 |
4 files changed, 16 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index 29a5d09e3..5b64e3a5a 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -304,6 +304,7 @@ USE_SETENFORCE(APPLET(setenforce, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | |||
304 | USE_SETFILES(APPLET(setfiles, _BB_DIR_SBIN, _BB_SUID_NEVER)) | 304 | USE_SETFILES(APPLET(setfiles, _BB_DIR_SBIN, _BB_SUID_NEVER)) |
305 | USE_SETKEYCODES(APPLET(setkeycodes, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 305 | USE_SETKEYCODES(APPLET(setkeycodes, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
306 | USE_SETLOGCONS(APPLET(setlogcons, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | 306 | USE_SETLOGCONS(APPLET(setlogcons, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) |
307 | USE_SETSEBOOL(APPLET(setsebool, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | ||
307 | USE_SETSID(APPLET(setsid, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 308 | USE_SETSID(APPLET(setsid, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
308 | USE_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, _BB_DIR_USR_BIN, _BB_SUID_NEVER, setuidgid)) | 309 | USE_SETUIDGID(APPLET_ODDNAME(setuidgid, chpst, _BB_DIR_USR_BIN, _BB_SUID_NEVER, setuidgid)) |
309 | USE_FEATURE_SH_IS_ASH(APPLET_NOUSAGE(sh, ash, _BB_DIR_BIN, _BB_SUID_NEVER)) | 310 | USE_FEATURE_SH_IS_ASH(APPLET_NOUSAGE(sh, ash, _BB_DIR_BIN, _BB_SUID_NEVER)) |
diff --git a/include/usage.h b/include/usage.h index 4c697d380..e88cf9e60 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -3056,6 +3056,12 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when | |||
3056 | #define setlogcons_full_usage \ | 3056 | #define setlogcons_full_usage \ |
3057 | "Redirect the kernel output to console N (0 for current)" | 3057 | "Redirect the kernel output to console N (0 for current)" |
3058 | 3058 | ||
3059 | #define setsebool_trivial_usage \ | ||
3060 | "boolean value" | ||
3061 | |||
3062 | #define setsebool_full_usage \ | ||
3063 | "Change boolean setting" | ||
3064 | |||
3059 | #define setsid_trivial_usage \ | 3065 | #define setsid_trivial_usage \ |
3060 | "program [arg ...]" | 3066 | "program [arg ...]" |
3061 | #define setsid_full_usage \ | 3067 | #define setsid_full_usage \ |
diff --git a/selinux/Config.in b/selinux/Config.in index 77f89c798..c2fc08dbf 100644 --- a/selinux/Config.in +++ b/selinux/Config.in | |||
@@ -104,5 +104,13 @@ config FEATURE_SETFILES_CHECK_OPTION | |||
104 | Support "-c" option (check the validity of the contexts against | 104 | Support "-c" option (check the validity of the contexts against |
105 | the specified binary policy) for setfiles. Requires libsepol. | 105 | the specified binary policy) for setfiles. Requires libsepol. |
106 | 106 | ||
107 | config SETSEBOOL | ||
108 | bool "setsebool" | ||
109 | default n | ||
110 | depends on SELINUX | ||
111 | help | ||
112 | Enable support for change boolean. | ||
113 | semanage and -P option is not supported yet. | ||
114 | |||
107 | endmenu | 115 | endmenu |
108 | 116 | ||
diff --git a/selinux/Kbuild b/selinux/Kbuild index 08f49c867..ce353e066 100644 --- a/selinux/Kbuild +++ b/selinux/Kbuild | |||
@@ -16,3 +16,4 @@ lib-$(CONFIG_SELINUXENABLED) += selinuxenabled.o | |||
16 | lib-$(CONFIG_SETENFORCE) += setenforce.o | 16 | lib-$(CONFIG_SETENFORCE) += setenforce.o |
17 | lib-$(CONFIG_SETFILES) += setfiles.o | 17 | lib-$(CONFIG_SETFILES) += setfiles.o |
18 | lib-$(CONFIG_RESTORECON) += setfiles.o | 18 | lib-$(CONFIG_RESTORECON) += setfiles.o |
19 | lib-$(CONFIG_SETSEBOOL) += setsebool.o | ||