Skip to content
Snippets Groups Projects
Commit bd79d08e authored by Robert Marshall's avatar Robert Marshall
Browse files

Extend and enhance SELinux distro support

- Rename RedhatHelper to SELinuxDistroHelper
- Explicitly support AmazonLinux 2 while avoiding accidental support
  for Enterprise Linux 2
- Use selinux_supported? as the single method to simplify checks in code
  rather than adding more and more boolean expressions
- Add rspec test coverage for SELinuxDistroHelper
- Fix boolean logic when checking Enterprise Linux versions 7 and 8
  where instead of a boolean, an integer was being returned

Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/7219



Changelog: fixed
Signed-off-by: default avatarRobert Marshall <rmarshall@gitlab.com>
parent ccdb6623
No related branches found
No related tags found
1 merge request!85Merged upstream 15.5.0+rc42.ce.0
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment