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
  • Loading branch information
marmarek committed Dec 24, 2024
1 parent 0e35fa4 commit 6077a10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpm_spec/qubes-qrexec-vm.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ rm -f %{name}-%{version}
%preun
%systemd_preun qubes-qrexec-agent.service

%pre selinux
%selinux_relabel_pre

%post selinux
%selinux_modules_install %{_datadir}/selinux/packages/qubes-core-qrexec.pp || :

Expand Down

0 comments on commit 6077a10

Please sign in to comment.