Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package selinux-policy for openSUSE:Factory checked in at 2026-02-27 17:01:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/selinux-policy (Old) and /work/SRC/openSUSE:Factory/.selinux-policy.new.29461 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "selinux-policy" Fri Feb 27 17:01:34 2026 rev:150 rq:1335251 version:20260219 Changes: -------- --- /work/SRC/openSUSE:Factory/selinux-policy/selinux-policy.changes 2026-02-21 21:01:04.222700245 +0100 +++ /work/SRC/openSUSE:Factory/.selinux-policy.new.29461/selinux-policy.changes 2026-02-27 17:02:45.622339318 +0100 @@ -1,0 +2,6 @@ +Tue Feb 24 08:52:40 UTC 2026 - Johannes Segitz <[email protected]> + +- Split out post install relabel logic into postInstallRelabel marco + to be reused for the minimum policy (bsc#1258722) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ selinux-policy.spec ++++++ --- /var/tmp/diff_new_pack.P4vX16/_old 2026-02-27 17:02:48.582462158 +0100 +++ /var/tmp/diff_new_pack.P4vX16/_new 2026-02-27 17:02:48.590462490 +0100 @@ -220,12 +220,7 @@ fi; \ fi; -%define postInstall() \ -. %{_sysconfdir}/selinux/config; \ -if [ -e %{_sysconfdir}/selinux/%2/.rebuild ]; then \ - rm %{_sysconfdir}/selinux/%2/.rebuild; \ - /usr/sbin/semodule -B -n -s %2 2> /dev/null; \ -fi; \ +%define postInstallRelabel() \ if [ -n "${TRANSACTIONAL_UPDATE}" ]; then \ touch /etc/selinux/.autorelabel ; \ else \ @@ -245,10 +240,18 @@ fi; \ else \ # run fixfiles on next boot \ - touch /.autorelabel ; \ + touch /etc/selinux/.autorelabel ; \ fi; \ fi; +%define postInstall() \ +. %{_sysconfdir}/selinux/config; \ +if [ -e %{_sysconfdir}/selinux/%2/.rebuild ]; then \ + rm %{_sysconfdir}/selinux/%2/.rebuild; \ + /usr/sbin/semodule -B -n -s %2 2> /dev/null; \ +fi; \ +%postInstallRelabel %1 %2 + %define modulesList() \ awk '$1 !~ "/^#/" && $2 == "=" && $3 == "module" { printf "%%s ", $1 }' ./policy/modules.conf > %{buildroot}%{_datadir}/selinux/%1/modules.lst \ awk '$1 !~ "/^#/" && $2 == "=" && $3 == "base" { printf "%%s ", $1 }' ./policy/modules.conf > %{buildroot}%{_datadir}/selinux/%1/base.lst \ @@ -594,8 +597,8 @@ rm -f %{_sharedstatedir}/selinux/minimum/active/modules/disabled/"$p" done %{_sbindir}/semodule -B -s minimum 2> /dev/null - %relabel minimum fi +%postInstallRelabel $1 minimum exit 0 %postun minimum
