summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry_eremin@mentor.com>2015-04-22 01:27:28 +0300
committerJoe MacDonald <joe_macdonald@mentor.com>2015-05-11 14:28:43 -0400
commit88b236f0545f012293ba5570e1d869268eda97aa (patch)
tree065138ab336ee501279896dc39c556f58e1c34af
parent22c3447a51a7ba5b483c5712a6c219b92df1ee5f (diff)
downloadmeta-selinux-88b236f0545f012293ba5570e1d869268eda97aa.tar.gz
selinux-config: allow to override 'enforcing' status of SELinux
Move the 'enforcing' setting to the DEFAULT_ENFORCING variable to allow one to override that setting in a bbappend file. Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--recipes-security/selinux/selinux-config_0.1.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-security/selinux/selinux-config_0.1.bb b/recipes-security/selinux/selinux-config_0.1.bb
index 6af9c54..09bb823 100644
--- a/recipes-security/selinux/selinux-config_0.1.bb
+++ b/recipes-security/selinux/selinux-config_0.1.bb
@@ -1,4 +1,5 @@
1DEFAULT_POLICY = "mls" 1DEFAULT_POLICY = "mls"
2DEFAULT_ENFORCING = "enforcing"
2 3
3SUMMARY = "SELinux configuration" 4SUMMARY = "SELinux configuration"
4DESCRIPTION = "\ 5DESCRIPTION = "\
@@ -33,7 +34,7 @@ do_install () {
33# enforcing - SELinux security policy is enforced. 34# enforcing - SELinux security policy is enforced.
34# permissive - SELinux prints warnings instead of enforcing. 35# permissive - SELinux prints warnings instead of enforcing.
35# disabled - No SELinux policy is loaded. 36# disabled - No SELinux policy is loaded.
36SELINUX=enforcing 37SELINUX=${DEFAULT_ENFORCING}
37# SELINUXTYPE= can take one of these two values: 38# SELINUXTYPE= can take one of these two values:
38# standard - Standard Security protection. 39# standard - Standard Security protection.
39# mls - Multi Level Security protection. 40# mls - Multi Level Security protection.