diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-10 16:58:49 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-03-10 16:58:49 +0000 |
commit | 49622d784672bf2f7b2fe80589714cdef5adde0c (patch) | |
tree | 892bb79b0ef031d729e688d6be4950f6d17f13b9 /selinux | |
parent | 4eb8b936cb0aeb27c3e12f9a93fc43aa1e9668f5 (diff) | |
download | busybox-w32-49622d784672bf2f7b2fe80589714cdef5adde0c.tar.gz busybox-w32-49622d784672bf2f7b2fe80589714cdef5adde0c.tar.bz2 busybox-w32-49622d784672bf2f7b2fe80589714cdef5adde0c.zip |
selinux support by Yuichi Nakamura <ynakam@hitachisoft.jp> (HitachiSoft)
Diffstat (limited to 'selinux')
-rw-r--r-- | selinux/Config.in | 28 | ||||
-rw-r--r-- | selinux/Kbuild | 2 |
2 files changed, 30 insertions, 0 deletions
diff --git a/selinux/Config.in b/selinux/Config.in index b078ee59e..6c08e51b7 100644 --- a/selinux/Config.in +++ b/selinux/Config.in | |||
@@ -6,6 +6,20 @@ | |||
6 | menu "Selinux Utilities" | 6 | menu "Selinux Utilities" |
7 | depends on SELINUX | 7 | depends on SELINUX |
8 | 8 | ||
9 | config CHCON | ||
10 | bool "chcon" | ||
11 | default n | ||
12 | depends on SELINUX | ||
13 | help | ||
14 | Enable support to change the security context of file. | ||
15 | |||
16 | config FEATURE_CHCON_LONG_OPTIONS | ||
17 | bool "Enable long options" | ||
18 | default y | ||
19 | depends on CHCON && GETOPT_LONG | ||
20 | help | ||
21 | Support long options for the chcon applet. | ||
22 | |||
9 | config GETENFORCE | 23 | config GETENFORCE |
10 | bool "getenforce" | 24 | bool "getenforce" |
11 | default n | 25 | default n |
@@ -28,6 +42,20 @@ config MATCHPATHCON | |||
28 | Enable support to get default security context of the | 42 | Enable support to get default security context of the |
29 | specified path from the file contexts configuration. | 43 | specified path from the file contexts configuration. |
30 | 44 | ||
45 | config RUNCON | ||
46 | bool "runcon" | ||
47 | default n | ||
48 | depends on SELINUX | ||
49 | help | ||
50 | Enable support to run command in speficied security context. | ||
51 | |||
52 | config FEATURE_RUNCON_LONG_OPTIONS | ||
53 | bool "Enable long options" | ||
54 | default y | ||
55 | depends on RUNCON && GETOPT_LONG | ||
56 | help | ||
57 | Support long options for the runcon applet. | ||
58 | |||
31 | config SELINUXENABLED | 59 | config SELINUXENABLED |
32 | bool "selinuxenabled" | 60 | bool "selinuxenabled" |
33 | default n | 61 | default n |
diff --git a/selinux/Kbuild b/selinux/Kbuild index 8371df8e4..398d1368d 100644 --- a/selinux/Kbuild +++ b/selinux/Kbuild | |||
@@ -6,8 +6,10 @@ | |||
6 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | 6 | # Licensed under the GPL v2, see the file LICENSE in this tarball. |
7 | 7 | ||
8 | lib-y:= | 8 | lib-y:= |
9 | lib-$(CONFIG_CHCON) += chcon.o | ||
9 | lib-$(CONFIG_GETENFORCE) += getenforce.o | 10 | lib-$(CONFIG_GETENFORCE) += getenforce.o |
10 | lib-$(CONFIG_GETSEBOOL) += getsebool.o | 11 | lib-$(CONFIG_GETSEBOOL) += getsebool.o |
11 | lib-$(CONFIG_MATCHPATHCON) += matchpathcon.o | 12 | lib-$(CONFIG_MATCHPATHCON) += matchpathcon.o |
13 | lib-$(CONFIG_RUNCON) += runcon.o | ||
12 | lib-$(CONFIG_SELINUXENABLED) += selinuxenabled.o | 14 | lib-$(CONFIG_SELINUXENABLED) += selinuxenabled.o |
13 | lib-$(CONFIG_SETENFORCE) += setenforce.o | 15 | lib-$(CONFIG_SETENFORCE) += setenforce.o |