diff --git a/rpm.macros b/rpm.macros index dcab018..6661955 100644 --- a/rpm.macros +++ b/rpm.macros @@ -55,10 +55,10 @@ if [ -z "${_policytype}" ]; then \ _policytype="targeted" \ fi \ if [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ - %{_sbindir}/rm -rf %{_sharedstatedir}/selinux/${_policytype}/active/modules/400/extra_varrun \ + %{_bindir}/rm -rf %{_sharedstatedir}/selinux/${_policytype}/active/modules/400/extra_varrun || : \ %{_sbindir}/semodule -n -s ${_policytype} -X %{!-p:200}%{-p*} -i %* || : \ %{_sbindir}/selinuxenabled && %{_sbindir}/load_policy || : \ - %{_libexecdir}/selinux/varrun-convert.sh ${_policytype} \ + %{_libexecdir}/selinux/varrun-convert.sh ${_policytype} || : \ fi \ %{nil} @@ -73,10 +73,10 @@ if [ -z "${_policytype}" ]; then \ fi \ if [ $1 -eq 0 ]; then \ if [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ - %{_sbindir}/rm -rf %{_sharedstatedir}/selinux/${_policytype}/active/modules/400/extra_varrun \ + %{_bindir}/rm -rf %{_sharedstatedir}/selinux/${_policytype}/active/modules/400/extra_varrun || : \ %{_sbindir}/semodule -n -X %{!-p:200}%{-p*} -s ${_policytype} -r %* &> /dev/null || : \ %{_sbindir}/selinuxenabled && %{_sbindir}/load_policy || : \ - %{_libexecdir}/selinux/varrun-convert.sh ${_policytype} \ + %{_libexecdir}/selinux/varrun-convert.sh ${_policytype} || : \ fi \ fi \ %{nil} diff --git a/selinux-policy.spec b/selinux-policy.spec index ba30725..a28c427 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -24,7 +24,7 @@ Summary: SELinux policy configuration Name: selinux-policy Version: 40.18 -Release: 2%{?dist} +Release: 3%{?dist} License: GPL-2.0-or-later Source: %{giturl}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Source1: modules-targeted-base.conf @@ -860,6 +860,9 @@ exit 0 %endif %changelog +* Thu May 16 2024 Adam Williamson - 40.18-3 +- Correct some errors in the RPM macro changes from -2 + * Mon May 06 2024 Zdenek Pytela - 40.18-2 - Update rpm configuration for the /var/run equivalency change