From 23185a55704e0a55f1d6bdd3c06dcd24bd67038387d7d1a4eb59a21cb46f82e2 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Mon, 11 Dec 2023 08:07:24 +0000 Subject: [PATCH] Accepting request 1129970 from home:cahu:branches:security:SELinux - Trigger rebuild of the policy when pcre2 gets updated to avoid regex version mismatch errors (bsc#1216747). OBS-URL: https://build.opensuse.org/request/show/1129970 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/selinux-policy?expand=0&rev=202 --- selinux-policy.changes | 6 ++++++ selinux-policy.spec | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/selinux-policy.changes b/selinux-policy.changes index 6eb8593..3e73cf0 100644 --- a/selinux-policy.changes +++ b/selinux-policy.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 28 14:40:23 UTC 2023 - Hu + +- Trigger rebuild of the policy when pcre2 gets updated to avoid + regex version mismatch errors (bsc#1216747). + ------------------------------------------------------------------- Fri Nov 24 09:34:20 UTC 2023 - cathy.hu@suse.com diff --git a/selinux-policy.spec b/selinux-policy.spec index f4740c5..590b356 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -539,6 +539,10 @@ exit 0 %postun targeted %post_un $1 targeted +%triggerin -- libpcre2-8-0 +%{_sbindir}/selinuxenabled && %{_sbindir}/semodule -nB +exit 0 + %files targeted -f %{buildroot}%{_datadir}/selinux/targeted/nonbasemodules.lst %config(noreplace) %{_sysconfdir}/selinux/targeted/contexts/users/unconfined_u %config(noreplace) %{_sysconfdir}/selinux/targeted/contexts/users/sysadm_u