summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosep Puigdemont <josep.puigdemont@enea.com>2015-08-14 14:45:20 +0200
committerJoe MacDonald <joe_macdonald@mentor.com>2015-08-14 12:31:37 -0400
commite8f690371e2cd70d3a9fb6188ff428a2c99855ee (patch)
tree491f04a632f4f9a8c5c6b6a660b866ed5620d7e0
parent1cd60863053fd8586684552cc323c14789dd54b5 (diff)
downloadmeta-selinux-e8f690371e2cd70d3a9fb6188ff428a2c99855ee.tar.gz
selinux-config: make DEFAULT_POLICY and DEFAULT_ENFORCING configurable
Make DEFAULT_POLICY and DEFAULT_ENFORCING configurations more flexible. Signed-off-by: Maxin B. John <maxin.john@enea.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--recipes-security/selinux/selinux-config_0.1.bb12
1 files changed, 7 insertions, 5 deletions
diff --git a/recipes-security/selinux/selinux-config_0.1.bb b/recipes-security/selinux/selinux-config_0.1.bb
index 98f6d5f..f77b490 100644
--- a/recipes-security/selinux/selinux-config_0.1.bb
+++ b/recipes-security/selinux/selinux-config_0.1.bb
@@ -1,15 +1,15 @@
1DEFAULT_POLICY = "mls" 1DEFAULT_POLICY ??= "mls"
2DEFAULT_ENFORCING = "enforcing" 2DEFAULT_ENFORCING ??= "enforcing"
3 3
4SUMMARY = "SELinux configuration" 4SUMMARY = "SELinux configuration"
5DESCRIPTION = "\ 5DESCRIPTION = "\
6This is the configuration files for SELinux on WRLinux system. \ 6SELinux configuration files for Yocto. \
7" 7"
8 8
9SECTION = "base" 9SECTION = "base"
10LICENSE = "MIT" 10LICENSE = "MIT"
11LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" 11LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
12PR = "r3" 12PR = "r4"
13 13
14S = "${WORKDIR}" 14S = "${WORKDIR}"
15 15
@@ -37,9 +37,11 @@ do_install () {
37# permissive - SELinux prints warnings instead of enforcing. 37# permissive - SELinux prints warnings instead of enforcing.
38# disabled - No SELinux policy is loaded. 38# disabled - No SELinux policy is loaded.
39SELINUX=${DEFAULT_ENFORCING} 39SELINUX=${DEFAULT_ENFORCING}
40# SELINUXTYPE= can take one of these two values: 40# SELINUXTYPE= can take one of these values:
41# standard - Standard Security protection. 41# standard - Standard Security protection.
42# mls - Multi Level Security protection. 42# mls - Multi Level Security protection.
43# targeted - Targeted processes are protected.
44# mcs - Multi Category Security protection.
43SELINUXTYPE=${DEFAULT_POLICY} 45SELINUXTYPE=${DEFAULT_POLICY}
44" > ${WORKDIR}/config 46" > ${WORKDIR}/config
45 install -d ${D}/${sysconfdir}/selinux 47 install -d ${D}/${sysconfdir}/selinux