[18.6] Fix RHEL 10 not working with SELinux
What does this MR do and why?
This backports !8954 (merged) to 18-6-stable.
This commit refactors SELinux RHEL version checks to use a version
comparison. Replace individual RHEL version checks (RHEL 7, 8, 9, 10)
with a system_is_supported_rhel? method that performs numeric
comparison. This simplifies the selinux_supported? check.
Relates to #9471 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
- This MR is backporting a bug fix, documentation update, or spec fix, previously merged in the default branch.
- The original MR has been deployed to GitLab.com (not applicable for documentation or spec changes).
- This MR has a severity label assigned (if applicable).
Note to the merge request author and maintainer
If you have questions about the patch release process, please:
- Refer to the patch release runbook for engineers and maintainers for guidance.
- Ask questions on the
#releasesSlack channel (internal only).
Edited by Robert Marshall