SLE16 check permissions /usr/etc/ssh/sshd_config#14439
Open
teacup-on-rockingchair wants to merge 4 commits into
Open
SLE16 check permissions /usr/etc/ssh/sshd_config#14439teacup-on-rockingchair wants to merge 4 commits into
teacup-on-rockingchair wants to merge 4 commits into
Conversation
|
Skipping CI for Draft Pull Request. |
de0d35d to
5d7ac3a
Compare
5d7ac3a to
4b2936b
Compare
|
This datastream diff is auto generated by the check Click here to see the full diffansible remediation for rule 'xccdf_org.ssgproject.content_rule_rsyslog_cron_logging' differs.
--- xccdf_org.ssgproject.content_rule_rsyslog_cron_logging
+++ xccdf_org.ssgproject.content_rule_rsyslog_cron_logging
@@ -170,6 +170,24 @@
- no_reboot_needed
- rsyslog_cron_logging
+- name: Ensure cron Is Logging To Rsyslog - Check if /etc/rsyslog.conf exists
+ ansible.builtin.stat:
+ path: /etc/rsyslog.conf
+ register: _config_file_exists
+ when:
+ - '"kernel-core" in ansible_facts.packages'
+ - '"rsyslog" in ansible_facts.packages'
+ tags:
+ - CCE-80859-2
+ - DISA-STIG-RHEL-08-030010
+ - NIST-800-53-CM-6(a)
+ - configure_strategy
+ - low_complexity
+ - low_disruption
+ - medium_severity
+ - no_reboot_needed
+ - rsyslog_cron_logging
+
- name: Ensure cron Is Logging To Rsyslog - Check if the parameter cron.* is configured
correctly in /etc/rsyslog.conf
ansible.builtin.lineinfile:
@@ -182,6 +200,7 @@
when:
- '"kernel-core" in ansible_facts.packages'
- '"rsyslog" in ansible_facts.packages'
+ - _config_file_exists.stat.exists
tags:
- CCE-80859-2
- DISA-STIG-RHEL-08-030010
@@ -257,6 +276,7 @@
when:
- '"kernel-core" in ansible_facts.packages'
- '"rsyslog" in ansible_facts.packages'
+ - _config_file_correctly is not skipped
- (_config_file_correctly.found == 0 and _config_dir_correctly.matched == 0) or
((_config_file_has_parameter.found | int) + (_config_dir_has_parameter.matched
| int)) != 1
ansible remediation for rule 'xccdf_org.ssgproject.content_rule_rsyslog_encrypt_offload_actionsendstreamdriverauthmode' differs.
--- xccdf_org.ssgproject.content_rule_rsyslog_encrypt_offload_actionsendstreamdriverauthmode
+++ xccdf_org.ssgproject.content_rule_rsyslog_encrypt_offload_actionsendstreamdriverauthmode
@@ -134,6 +134,25 @@
- no_reboot_needed
- rsyslog_encrypt_offload_actionsendstreamdriverauthmode
+- name: Ensure Rsyslog Authenticates Off-Loaded Audit Records - Check if /etc/rsyslog.conf
+ exists
+ ansible.builtin.stat:
+ path: /etc/rsyslog.conf
+ register: _config_file_exists
+ when:
+ - '"kernel-core" in ansible_facts.packages'
+ - '"rsyslog" in ansible_facts.packages'
+ tags:
+ - CCE-86339-9
+ - DISA-STIG-RHEL-08-030720
+ - NIST-800-53-AU-4(1)
+ - configure_strategy
+ - low_complexity
+ - low_disruption
+ - medium_severity
+ - no_reboot_needed
+ - rsyslog_encrypt_offload_actionsendstreamdriverauthmode
+
- name: Ensure Rsyslog Authenticates Off-Loaded Audit Records - Check if the parameter
$ActionSendStreamDriverAuthMode is configured correctly in /etc/rsyslog.conf
ansible.builtin.lineinfile:
@@ -146,6 +165,7 @@
when:
- '"kernel-core" in ansible_facts.packages'
- '"rsyslog" in ansible_facts.packages'
+ - _config_file_exists.stat.exists
tags:
- CCE-86339-9
- DISA-STIG-RHEL-08-030720
@@ -221,6 +241,7 @@
when:
- '"kernel-core" in ansible_facts.packages'
- '"rsyslog" in ansible_facts.packages'
+ - _config_file_correctly is not skipped
- (_config_file_correctly.found == 0 and _config_dir_correctly.matched == 0) or
((_config_file_has_parameter.found | int) + (_config_dir_has_parameter.matched
| int)) != 1
ansible remediation for rule 'xccdf_org.ssgproject.content_rule_rsyslog_encrypt_offload_actionsendstreamdrivermode' differs.
--- xccdf_org.ssgproject.content_rule_rsyslog_encrypt_offload_actionsendstreamdrivermode
+++ xccdf_org.ssgproject.content_rule_rsyslog_encrypt_offload_actionsendstreamdrivermode
@@ -134,6 +134,25 @@
- no_reboot_needed
- rsyslog_encrypt_offload_actionsendstreamdrivermode
+- name: Ensure Rsyslog Encrypts Off-Loaded Audit Records - Check if /etc/rsyslog.conf
+ exists
+ ansible.builtin.stat:
+ path: /etc/rsyslog.conf
+ register: _config_file_exists
+ when:
+ - '"kernel-core" in ansible_facts.packages'
+ - '"rsyslog" in ansible_facts.packages'
+ tags:
+ - CCE-86098-1
+ - DISA-STIG-RHEL-08-030710
+ - NIST-800-53-AU-4(1)
+ - configure_strategy
+ - low_complexity
+ - low_disruption
+ - medium_severity
+ - no_reboot_needed
+ - rsyslog_encrypt_offload_actionsendstreamdrivermode
+
- name: Ensure Rsyslog Encrypts Off-Loaded Audit Records - Check if the parameter
$ActionSendStreamDriverMode is configured correctly in /etc/rsyslog.conf
ansible.builtin.lineinfile:
@@ -146,6 +165,7 @@
when:
- '"kernel-core" in ansible_facts.packages'
- '"rsyslog" in ansible_facts.packages'
+ - _config_file_exists.stat.exists
tags:
- CCE-86098-1
- DISA-STIG-RHEL-08-030710
@@ -221,6 +241,7 @@
when:
- '"kernel-core" in ansible_facts.packages'
- '"rsyslog" in ansible_facts.packages'
+ - _config_file_correctly is not skipped
- (_config_file_correctly.found == 0 and _config_dir_correctly.matched == 0) or
((_config_file_has_parameter.found | int) + (_config_dir_has_parameter.matched
| int)) != 1
ansible remediation for rule 'xccdf_org.ssgproject.content_rule_rsyslog_encrypt_offload_defaultnetstreamdriver' differs.
--- xccdf_org.ssgproject.content_rule_rsyslog_encrypt_offload_defaultnetstreamdriver
+++ xccdf_org.ssgproject.content_rule_rsyslog_encrypt_offload_defaultnetstreamdriver
@@ -134,6 +134,25 @@
- no_reboot_needed
- rsyslog_encrypt_offload_defaultnetstreamdriver
+- name: Ensure Rsyslog Encrypts Off-Loaded Audit Records - Check if /etc/rsyslog.conf
+ exists
+ ansible.builtin.stat:
+ path: /etc/rsyslog.conf
+ register: _config_file_exists
+ when:
+ - '"kernel-core" in ansible_facts.packages'
+ - '"rsyslog" in ansible_facts.packages'
+ tags:
+ - CCE-85992-6
+ - DISA-STIG-RHEL-08-030710
+ - NIST-800-53-AU-4(1)
+ - configure_strategy
+ - low_complexity
+ - low_disruption
+ - medium_severity
+ - no_reboot_needed
+ - rsyslog_encrypt_offload_defaultnetstreamdriver
+
- name: Ensure Rsyslog Encrypts Off-Loaded Audit Records - Check if the parameter
$DefaultNetstreamDriver is configured correctly in /etc/rsyslog.conf
ansible.builtin.lineinfile:
@@ -146,6 +165,7 @@
when:
- '"kernel-core" in ansible_facts.packages'
- '"rsyslog" in ansible_facts.packages'
+ - _config_file_exists.stat.exists
tags:
- CCE-85992-6
- DISA-STIG-RHEL-08-030710
@@ -221,6 +241,7 @@
when:
- '"kernel-core" in ansible_facts.packages'
- '"rsyslog" in ansible_facts.packages'
+ - _config_file_correctly is not skipped
- (_config_file_correctly.found == 0 and _config_dir_correctly.matched == 0) or
((_config_file_has_parameter.found | int) + (_config_dir_has_parameter.matched
| int)) != 1
bash remediation for rule 'xccdf_org.ssgproject.content_rule_sshd_use_strong_kex' differs.
--- xccdf_org.ssgproject.content_rule_sshd_use_strong_kex
+++ xccdf_org.ssgproject.content_rule_sshd_use_strong_kex
@@ -2,6 +2,9 @@
if rpm --quiet -q kernel-core; then
sshd_strong_kex=''
+
+
+
if [ -e "/etc/ssh/sshd_config" ] ; then
LC_ALL=C sed -i "/^\s*KexAlgorithms\s\+/Id" "/etc/ssh/sshd_config" |
… also checked for permissions
- sle16 OVAL is removed and test for checking main config file exist is added - tests checking /usr/etc/ssh stuff are removed and tests use sshd_main_config_file and sshd_config_dir
- ansible copy distro defaults and remove Include /usr/etc/ssh/sshd_config.d/*.conf from main config - bash copy distro defaults and remove Include /usr/etc/ssh/sshd_config.d/*.conf from main config - removed no longer needed tests checking /usr/etc/ssh stuff - tests now use sshd_main_config_file and sshd_config_dir(oracle specific test remain unchanged)
4b2936b to
f2d2f82
Compare
|
@teacup-on-rockingchair: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Rationale: