Skip to content

Commit 5c27d6e

Browse files
committed
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
1 parent 2dcfec3 commit 5c27d6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rpm_spec/qubes-utils.spec.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ License: GPLv2+
7272
SELinux policy for meminfo-writer. You need this package to run meminfo-writer
7373
on a system where SELinux is in enforcing mode.
7474

75+
%pre selinux
76+
%selinux_relabel_pre
77+
7578
%post selinux
7679
%selinux_modules_install %{_datadir}/selinux/packages/qubes-meminfo-writer.pp || :
7780

0 commit comments

Comments
 (0)