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
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion bin/burden
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ gl_run_prefix=""
gl_scenario_to_run=""
gl_scenario_to_restore=""
gl_selinux_level="enforcing"
gl_selinux_state="enabled"
gl_selinux_state=$value_not_set
gl_selinux_state_set=0
gl_ssh_key_file=""
gl_show_os_versions=0;
Expand Down Expand Up @@ -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.

gl_selinux_state="enabled"
else
gl_selinux_state="disabled"
fi
fi

verify_selinux

#
Expand Down