Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qm.spec: Fix packaing for other selinux policies
The current package hardcodes that post-install it will install the module to the "targeted" policy (but the macro only does this is it is also the active policy). This means if the active policy is something else, such as "automotive", then the qm module is not installed at all, and qm doesn't work. We fix this by always installing the module to the active selinux policy. This is how e.g. container-selinux does it. In addition we remove the hard post-require on selinux-policy-target and replace it with selinux-policy-any, which all selinux policy packages provide. We also add a recommendataion of selinux-policy-targeted, so most people get it. This is also what container-selinux does.
- Loading branch information