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 dae37b9 commit 00e2197
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpm_spec/qubes-db-vm.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ SELinux enforcing in a qube.
%{_datadir}/selinux/devel/include/contrib/ipp-qubes-core-qubesdb.if
%{qubes_db_vm_selinux}

%pre selinux
%selinux_relabel_pre

%post selinux
%selinux_modules_install %{qubes_db_vm_selinux}

Expand Down

0 comments on commit 00e2197

Please sign in to comment.