8000 RHEL 9 Ansible fixes by jan-cerny · Pull Request #13455 · ComplianceAsCode/content · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

RHEL 9 Ansible fixes #13455

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

Merged
merged 3 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 6 additions & 6 deletions controls/stig_rhel9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -469,17 +469,17 @@ controls:
levels:
- medium
title: RHEL 9 must not have the ypserv package installed.
rules:
related_rules:
- package_ypserv_removed
status: automated
status: not applicable # The ypserv package is not available in RHEL 9
Copy link
Member

Choose a reason for hiding this comment

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

In other PRs, I left this as automated and just moved it related rules.

We should decide if we like this approach better.

I think I like this better.


- id: RHEL-09-215035
levels:
- medium
title: RHEL 9 must not have the rsh-server package installed.
rules:
related_rules:
- package_rsh-server_removed
status: automated
status: not applicable # The rsh-server package is not available in RHEL 9

- id: RHEL-09-215040
levels:
Expand Down Expand Up @@ -527,9 +527,9 @@ controls:
levels:
- medium
title: RHEL 9 must not have the quagga package installed.
rules:
related_rules:
- package_quagga_removed
status: automated
status: not applicable # The quagga package is not available in RHEL 9

- id: RHEL-09-215070
levels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# platform = multi_platform_fedora,multi_platform_ol,multi_platform_rhel,multi_platform_ubuntu,multi_platform_almalinux
# variables = sshd_strong_macs=hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha2-512

sed -i 's/^\s*MACs\s/# &/i' /etc/ssh/sshd_config
3 changes: 3 additions & 0 deletions products/rhel9/profiles/default.profile
Original file line number Diff line number Diff line change
Expand Up @@ -580,3 +580,6 @@ selections:
- audit_rules_unsuccessful_file_modification
- audit_rules_session_events
- kerberos_disable_no_keytab
- package_ypserv_removed
- package_quagga_removed
- package_rsh-server_removed
3 changes: 3 additions & 0 deletions shared/templates/sshd_lineinfile/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def set_variables_for_test_scenarios(data):
if data['xccdf_variable'] == 'var_sshd_set_maxstartups':
data["wrong_value"] = "30:10:110"
data["correct_value"] = "10:30:60"
elif data["xccdf_variable"] == "var_sshd_disable_compression":
data["wrong_value"] = "delayed"
data["correct_value"] = "no"
else:
data["wrong_value"] = "wrong_value"
data["correct_value"] = "correct_value"
Expand Down
3 changes: 0 additions & 3 deletions tests/data/profile_stability/rhel9/stig.profile
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,7 @@ selections:
- package_policycoreutils-python-utils_installed
- package_policycoreutils_installed
- package_postfix_installed
- package_quagga_removed
- package_rng-tools_installed
- package_rsh-server_removed
- package_rsyslog-gnutls_installed
- package_rsyslog_installed
- package_s-nail_installed
Expand All @@ -408,7 +406,6 @@ selections:
- package_tuned_removed
- package_usbguard_installed
- package_vsftpd_removed
- package_ypserv_removed
- partition_for_home
- partition_for_tmp
- partition_for_var
Expand Down
3 changes: 0 additions & 3 deletions tests/data/profile_stability/rhel9/stig_gui.profile
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,7 @@ selections:
- package_policycoreutils-python-utils_installed
- package_policycoreutils_installed
- package_postfix_installed
- package_quagga_removed
- package_rng-tools_installed
- package_rsh-server_removed
- package_rsyslog-gnutls_installed
- package_rsyslog_installed
- package_s-nail_installed
Expand All @@ -418,7 +416,6 @@ selections:
- package_tuned_removed
- package_usbguard_installed
- package_vsftpd_removed
- package_ypserv_removed
- partition_for_home
- partition_for_tmp
- partition_for_var
Expand Down
Loading
0