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>
This commit is contained in:
Wenzong Fan 2016-09-22 06:19:47 -04:00 committed by Joe MacDonald
parent b72d0a06a8
commit fea3e1d19e
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ path = ${STAGING_DIR_NATIVE}${sbindir_native}/sefcontext_compile
args = \$@
[end]
policy-version = 28
policy-version = 30
EOF
# Create policy store and build the policy

View File

@ -44,7 +44,7 @@ do_install() {
PYLIBDIR='${D}/${libdir}/$(PYLIBVER)'
# Update "policy-version" for semanage.conf
sed -i 's/^#\s*\(policy-version\s*=\).*$/\1 28/' \
sed -i 's/^#\s*\(policy-version\s*=\).*$/\1 30/' \
${D}/etc/selinux/semanage.conf
}