Skip to content

Commit

Permalink
rpm: adjust SELinux snippets for relabeling
Browse files Browse the repository at this point in the history
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

(cherry picked from commit 5c27d6e)
  • Loading branch information
marmarek committed Dec 25, 2024
1 parent 533d62e commit 80d025a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpm_spec/qubes-utils.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 || :

Expand Down

0 comments on commit 80d025a

Please sign in to comment.