From 52e9ea8711d8ed74e6dc2086474513b6e731ef86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 9 Jan 2025 10:45:48 +0100 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 selinux-policy revision a5c9f512fcf3b855b6d935e0bab46cd9 --- macros.selinux-policy | 8 ++++++-- selinux-policy.changes | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/macros.selinux-policy b/macros.selinux-policy index 5f80a2d..a6ed0a6 100644 --- a/macros.selinux-policy +++ b/macros.selinux-policy @@ -110,8 +110,12 @@ if [ -z "${_policytype}" ]; then \ fi \ if %{_sbindir}/selinuxenabled && [ "${SELINUXTYPE}" = "${_policytype}" ]; then \ if [ -f %{_file_context_file_pre} ]; then \ - %{_sbindir}/fixfiles -C %{_file_context_file_pre} restore &> /dev/null \ - rm -f %{_file_context_file_pre} \ + if [ -z "${TRANSACTIONAL_UPDATE}" ]; then \ + %{_sbindir}/fixfiles -C %{_file_context_file_pre} restore &> /dev/null \ + rm -f %{_file_context_file_pre} \ + else \ + touch /etc/selinux/.autorelabel \ + fi \ fi \ fi \ %{nil} diff --git a/selinux-policy.changes b/selinux-policy.changes index d416438..7bc3fc0 100644 --- a/selinux-policy.changes +++ b/selinux-policy.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Nov 29 14:56:01 UTC 2024 - Johannes Segitz + +- Update macros.selinux-policy to trigger a full relabel on transactional + systems upon module installation. This is rather expensive and will + hopefully be replaced by a more fine grained solution later on (bsc#1232753) + ------------------------------------------------------------------- Wed Sep 04 08:29:38 UTC 2024 - cathy.hu@suse.com