From e6f72c07b8ddf26f871b3881f229677996d49cf0 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: May 14 2017 19:34:52 +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 42709bb..95121be 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -201,6 +201,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() \ @@ -264,6 +265,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 \