aboutsummaryrefslogtreecommitdiff
path: root/selinux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-03-10 16:58:49 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-03-10 16:58:49 +0000
commit49622d784672bf2f7b2fe80589714cdef5adde0c (patch)
tree892bb79b0ef031d729e688d6be4950f6d17f13b9 /selinux
parent4eb8b936cb0aeb27c3e12f9a93fc43aa1e9668f5 (diff)
downloadbusybox-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.in28
-rw-r--r--selinux/Kbuild2
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 @@
6menu "Selinux Utilities" 6menu "Selinux Utilities"
7 depends on SELINUX 7 depends on SELINUX
8 8
9config CHCON
10 bool "chcon"
11 default n
12 depends on SELINUX
13 help
14 Enable support to change the security context of file.
15
16config 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
9config GETENFORCE 23config 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
45config RUNCON
46 bool "runcon"
47 default n
48 depends on SELINUX
49 help
50 Enable support to run command in speficied security context.
51
52config 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
31config SELINUXENABLED 59config 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
8lib-y:= 8lib-y:=
9lib-$(CONFIG_CHCON) += chcon.o
9lib-$(CONFIG_GETENFORCE) += getenforce.o 10lib-$(CONFIG_GETENFORCE) += getenforce.o
10lib-$(CONFIG_GETSEBOOL) += getsebool.o 11lib-$(CONFIG_GETSEBOOL) += getsebool.o
11lib-$(CONFIG_MATCHPATHCON) += matchpathcon.o 12lib-$(CONFIG_MATCHPATHCON) += matchpathcon.o
13lib-$(CONFIG_RUNCON) += runcon.o
12lib-$(CONFIG_SELINUXENABLED) += selinuxenabled.o 14lib-$(CONFIG_SELINUXENABLED) += selinuxenabled.o
13lib-$(CONFIG_SETENFORCE) += setenforce.o 15lib-$(CONFIG_SETENFORCE) += setenforce.o