Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change SELinux defaults depending on os_vendor #144

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kdvalin
Copy link
Member

@kdvalin kdvalin commented Jan 10, 2025

This PR changes the default SELinux state depending on the OS vendor. This PR will only set selinux_state to be default enabled if the target OS is RHEL. All other vendors will default to disabled.

This fixes #114.

Relates to JIRA: RPOPC-260

@kdvalin kdvalin requested a review from a team January 10, 2025 16:00
bin/burden Outdated Show resolved Hide resolved
@kdvalin kdvalin requested a review from dvalinrh January 13, 2025 15:45
bin/burden Outdated
@@ -4073,6 +4073,14 @@ if [[ $gl_show_os_versions -eq 1 ]]; then
cleanup_and_exit "" 0
fi

if [[ "$gl_selinux_state" == "$value_not_set" ]]; then
if [[ "$gl_os_vendor" == "rhel" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include amazon linux for enabled.

@kdvalin kdvalin requested a review from dvalinrh January 14, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

selinux_level default incompatible with Ubuntu
2 participants