From ad3add73456c6fdda46f29d1aa56eaac8dcfed9f Mon Sep 17 00:00:00 2001 From: Lukas Vrabec Date: Dec 15 2015 15:09:20 +0000 Subject: Add missing noreplace flag to file: %{_sysconfdir}/selinux/%1/contexts/files/file_contexts.local This should keep local modification of policy after update/downgrade selinux-policy package. Thanks plautrba@redhat.com --- diff --git a/selinux-policy.spec b/selinux-policy.spec index 30af6c3..72e03b0 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -228,9 +228,9 @@ rm -rf %{buildroot}%{_sysconfdir}/selinux/%1/modules/active/policy.kern \ %verify(not md5 size mtime) %{_sysconfdir}/selinux/%1/contexts/files/file_contexts \ %verify(not md5 size mtime) %{_sysconfdir}/selinux/%1/contexts/files/file_contexts.bin \ %verify(not md5 size mtime) %{_sysconfdir}/selinux/%1/contexts/files/file_contexts.homedirs* \ -%verify(not md5 size mtime) %{_sysconfdir}/selinux/%1/contexts/files/file_contexts.local \ +%config(noreplace) %{_sysconfdir}/selinux/%1/contexts/files/file_contexts.local \ %verify(not md5 size mtime) %{_sysconfdir}/selinux/%1/contexts/files/file_contexts.local.bin \ -# %ghost %{_sysconfdir}/selinux/%1/contexts/files/*.bin \ +%ghost %{_sysconfdir}/selinux/%1/contexts/files/*.bin \ %config(noreplace) %{_sysconfdir}/selinux/%1/contexts/files/file_contexts.subs \ %{_sysconfdir}/selinux/%1/contexts/files/file_contexts.subs_dist \ %{_sysconfdir}/selinux/%1/booleans.subs_dist \