[selinux-policy/f20] Need to create the policy.kern symbolic link in the shipping policy.

Miroslav Grepl mgrepl at fedoraproject.org
Mon Oct 14 06:54:07 UTC 2013


commit 909f7e448417f4a8cf1caf1cbb478607cb24adb3
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 d95970d..8a1acc6 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