From 3332d5b8d0e906f01342d11e5f4b6d1c22cee95f Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Apr 20 2017 20:48:24 +0000 Subject: 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 --- diff --git a/selinux-policy.spec b/selinux-policy.spec index c5775e8..9065b4b 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 \