[selinux-policy] Need to create the policy.kern symbolic link in the shipping policy.
Daniel J Walsh
dwalsh at fedoraproject.org
Fri Oct 11 20:12:05 UTC 2013
commit 973ebb8068d787c26006ddb391fb62d854da5498
Author: Dan Walsh <dwalsh at redhat.com>
Date: Fri Oct 11 16:07:22 2013 -0400
Need to create the policy.kern symbolic link in the shipping policy.
This patch needs to be pushed into RHEL7. It fixes a blocker bug.
config.tgz | Bin 3336 -> 3189 bytes
selinux-policy.spec | 3 ++-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/config.tgz b/config.tgz
index b83b86f..c4a79da 100644
Binary files a/config.tgz and b/config.tgz differ
diff --git a/selinux-policy.spec b/selinux-policy.spec
index e7a4990..a8cf1ec 100644
--- a/selinux-policy.spec
+++ b/selinux-policy.spec
@@ -189,6 +189,7 @@ mkdir -p %{buildroot}%{_usr}/share/selinux/packages \
/usr/bin/sha512sum %{buildroot}%{_sysconfdir}/selinux/%1/policy/policy.%{POLICYVER} | cut -d' ' -f 1 > %{buildroot}%{_sysconfdir}/selinux/%1/.policy.sha512; \
rm -rf %{buildroot}%{_sysconfdir}/selinux/%1/contexts/netfilter_contexts \
rm -rf %{buildroot}%{_sysconfdir}/selinux/%1/modules/active/policy.kern \
+ln -sf /etc/selinux/%1/policy/policy.%{POLICYVER} %{buildroot}%{_sysconfdir}/selinux/%1/modules/active/policy.kern \
%nil
%define fileList() \
@@ -213,7 +214,7 @@ rm -rf %{buildroot}%{_sysconfdir}/selinux/%1/modules/active/policy.kern \
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/selinux/%1/modules/active/users_extra \
%verify(not md5 size mtime) %{_sysconfdir}/selinux/%1/modules/active/homedir_template \
%verify(not md5 size mtime) %{_sysconfdir}/selinux/%1/modules/active/modules/*.pp \
-%ghost %{_sysconfdir}/selinux/%1/modules/active/policy.kern \
+%verify(not md5 size mtime) %{_sysconfdir}/selinux/%1/modules/active/policy.kern \
%ghost %{_sysconfdir}/selinux/%1/modules/active/*.local \
%ghost %{_sysconfdir}/selinux/%1/modules/active/*.bin \
%ghost %{_sysconfdir}/selinux/%1/modules/active/seusers \
More information about the scm-commits
mailing list