summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2016-09-22 06:19:47 -0400
committerJoe MacDonald <joe_macdonald@mentor.com>2016-09-22 11:34:06 -0400
commitfea3e1d19ee974bc828a671405707258daa4d32b (patch)
tree4579ba39f7ec1306dc8e7cdfb81caa170d4f2dca
parentb72d0a06a88ae0549826390d12c4c70eb86a3b34 (diff)
downloadmeta-selinux-fea3e1d19ee974bc828a671405707258daa4d32b.tar.gz
selinux: update policy-version to 30
Both selinux 2.5 and kernel 4.8 support Max Policy Version 30. Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--recipes-security/refpolicy/refpolicy_common.inc2
-rw-r--r--recipes-security/selinux/libsemanage.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes-security/refpolicy/refpolicy_common.inc b/recipes-security/refpolicy/refpolicy_common.inc
index a9dc466..ea98139 100644
--- a/recipes-security/refpolicy/refpolicy_common.inc
+++ b/recipes-security/refpolicy/refpolicy_common.inc
@@ -125,7 +125,7 @@ path = ${STAGING_DIR_NATIVE}${sbindir_native}/sefcontext_compile
125args = \$@ 125args = \$@
126[end] 126[end]
127 127
128policy-version = 28 128policy-version = 30
129EOF 129EOF
130 130
131 # Create policy store and build the policy 131 # Create policy store and build the policy
diff --git a/recipes-security/selinux/libsemanage.inc b/recipes-security/selinux/libsemanage.inc
index 6bb57a0..41fd3f5 100644
--- a/recipes-security/selinux/libsemanage.inc
+++ b/recipes-security/selinux/libsemanage.inc
@@ -44,7 +44,7 @@ do_install() {
44 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)' 44 PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
45 45
46 # Update "policy-version" for semanage.conf 46 # Update "policy-version" for semanage.conf
47 sed -i 's/^#\s*\(policy-version\s*=\).*$/\1 28/' \ 47 sed -i 's/^#\s*\(policy-version\s*=\).*$/\1 30/' \
48 ${D}/etc/selinux/semanage.conf 48 ${D}/etc/selinux/semanage.conf
49} 49}
50 50