From 5c27d6ec6ee79a9633defe366a63c117cf16e85b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 24 Dec 2024 04:58:41 +0100 Subject: [PATCH] rpm: adjust SELinux snippets for relabeling Adjust according to https://fedoraproject.org/wiki/SELinux/IndependentPolicy#Creating_the_Spec_File Specifically, when %selinux_relabel_post is used, %selinux_relabel_pre needs to be there too. QubesOS/qubes-issues#9663 --- rpm_spec/qubes-utils.spec.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpm_spec/qubes-utils.spec.in b/rpm_spec/qubes-utils.spec.in index 46e4c515..fb579160 100644 --- a/rpm_spec/qubes-utils.spec.in +++ b/rpm_spec/qubes-utils.spec.in @@ -72,6 +72,9 @@ License: GPLv2+ SELinux policy for meminfo-writer. You need this package to run meminfo-writer on a system where SELinux is in enforcing mode. +%pre selinux +%selinux_relabel_pre + %post selinux %selinux_modules_install %{_datadir}/selinux/packages/qubes-meminfo-writer.pp || :