diff options
author | Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com> | 2015-04-22 01:27:28 +0300 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-05-11 14:28:43 -0400 |
commit | 88b236f0545f012293ba5570e1d869268eda97aa (patch) | |
tree | 065138ab336ee501279896dc39c556f58e1c34af | |
parent | 22c3447a51a7ba5b483c5712a6c219b92df1ee5f (diff) | |
download | meta-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.bb | 3 |
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 @@ | |||
1 | DEFAULT_POLICY = "mls" | 1 | DEFAULT_POLICY = "mls" |
2 | DEFAULT_ENFORCING = "enforcing" | ||
2 | 3 | ||
3 | SUMMARY = "SELinux configuration" | 4 | SUMMARY = "SELinux configuration" |
4 | DESCRIPTION = "\ | 5 | DESCRIPTION = "\ |
@@ -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. |
36 | SELINUX=enforcing | 37 | SELINUX=${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. |