diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2016-09-22 06:19:47 -0400 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2016-09-22 11:34:06 -0400 |
commit | fea3e1d19ee974bc828a671405707258daa4d32b (patch) | |
tree | 4579ba39f7ec1306dc8e7cdfb81caa170d4f2dca | |
parent | b72d0a06a88ae0549826390d12c4c70eb86a3b34 (diff) | |
download | meta-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.inc | 2 | ||||
-rw-r--r-- | recipes-security/selinux/libsemanage.inc | 2 |
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 | |||
125 | args = \$@ | 125 | args = \$@ |
126 | [end] | 126 | [end] |
127 | 127 | ||
128 | policy-version = 28 | 128 | policy-version = 30 |
129 | EOF | 129 | EOF |
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 | ||