From b5863057a5d3efd583d210eb043fd86e631a0f19 Mon Sep 17 00:00:00 2001 From: Zdenek Pytela Date: Wed, 19 Jan 2022 13:25:07 +0100 Subject: [PATCH] Force a rebuild of policy unconditionally Currently, the policy is rebuilt only when /etc/selinux/POLICY/.rebuild exists which can make problems with independent policy modules. Resolves: rhbz#2082524 --- selinux-policy.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selinux-policy.spec b/selinux-policy.spec index 34e25559..5d261e6d 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -318,8 +318,8 @@ if [ -s %{_sysconfdir}/selinux/config ]; then \ fi; \ if [ -e %{_sysconfdir}/selinux/%2/.rebuild ]; then \ rm %{_sysconfdir}/selinux/%2/.rebuild; \ - %{_sbindir}/semodule -B -n -s %2; \ fi; \ +%{_sbindir}/semodule -B -n -s %2; \ [ "${SELINUXTYPE}" == "%2" ] && %{_sbindir}/selinuxenabled && load_policy; \ if [ %1 -eq 1 ]; then \ %{_sbindir}/restorecon -R /root /var/log /run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null; \