diff options
author | Josep Puigdemont <josep.puigdemont@enea.com> | 2015-08-14 14:45:20 +0200 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-08-14 12:31:37 -0400 |
commit | e8f690371e2cd70d3a9fb6188ff428a2c99855ee (patch) | |
tree | 491f04a632f4f9a8c5c6b6a660b866ed5620d7e0 | |
parent | 1cd60863053fd8586684552cc323c14789dd54b5 (diff) | |
download | meta-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.bb | 12 |
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 @@ | |||
1 | DEFAULT_POLICY = "mls" | 1 | DEFAULT_POLICY ??= "mls" |
2 | DEFAULT_ENFORCING = "enforcing" | 2 | DEFAULT_ENFORCING ??= "enforcing" |
3 | 3 | ||
4 | SUMMARY = "SELinux configuration" | 4 | SUMMARY = "SELinux configuration" |
5 | DESCRIPTION = "\ | 5 | DESCRIPTION = "\ |
6 | This is the configuration files for SELinux on WRLinux system. \ | 6 | SELinux configuration files for Yocto. \ |
7 | " | 7 | " |
8 | 8 | ||
9 | SECTION = "base" | 9 | SECTION = "base" |
10 | LICENSE = "MIT" | 10 | LICENSE = "MIT" |
11 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 11 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
12 | PR = "r3" | 12 | PR = "r4" |
13 | 13 | ||
14 | S = "${WORKDIR}" | 14 | S = "${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. |
39 | SELINUX=${DEFAULT_ENFORCING} | 39 | SELINUX=${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. | ||
43 | SELINUXTYPE=${DEFAULT_POLICY} | 45 | SELINUXTYPE=${DEFAULT_POLICY} |
44 | " > ${WORKDIR}/config | 46 | " > ${WORKDIR}/config |
45 | install -d ${D}/${sysconfdir}/selinux | 47 | install -d ${D}/${sysconfdir}/selinux |