From 3332d5b8d0e906f01342d11e5f4b6d1c22cee95f Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Thu, 20 Apr 2017 14:37:28 +0200 Subject: [PATCH] Do not ship .linked files libsemanage was updated [1] to use {policy,seusers,users_extra}.linked files to cache the linked policy prior to merging local changes. We don't need to ship these files, however the files should be owned by selinux-policy packages on a filesystem. [1] https://github.com/SELinuxProject/selinux/commit/8702a865e08b5660561e194a83e4a363061edc03 --- selinux-policy.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selinux-policy.spec b/selinux-policy.spec index c5775e85..9065b4b3 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -202,6 +202,7 @@ rm -f %{buildroot}/%{_usr}/share/selinux/%1/*pp* \ /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 \ +rm -f %{buildroot}%{_sharedstatedir}/selinux/%1/active/*.linked \ %nil %define fileList() \ @@ -265,6 +266,9 @@ rm -rf %{buildroot}%{_sysconfdir}/selinux/%1/modules/active/policy.kern \ %{_sharedstatedir}/selinux/%1/active/seusers \ %{_sharedstatedir}/selinux/%1/active/file_contexts \ %{_sharedstatedir}/selinux/%1/active/policy.kern \ +%ghost %{_sharedstatedir}/selinux/%1/active/policy.linked \ +%ghost %{_sharedstatedir}/selinux/%1/active/seusers.linked \ +%ghost %{_sharedstatedir}/selinux/%1/active/users_extra.linked \ %{_datadir}/selinux/%1 \ #%{_libexecdir}/selinux/selinux-factory-reset \ #%{_unitdir}/selinux-factory-reset@.service \