-
Notifications
You must be signed in to change notification settings - Fork 710
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
Add new rule rsyslog_filecreatemode #10264
Conversation
This datastream diff is auto generated by the check Click here to see the full diffNew content has different text for rule 'xccdf_org.ssgproject.content_rule_rsyslog_files_permissions'.
--- xccdf_org.ssgproject.content_rule_rsyslog_files_permissions
+++ xccdf_org.ssgproject.content_rule_rsyslog_files_permissions
@@ -65,9 +65,6 @@
[reference]:
Req-10.5.2
-[reference]:
-4.2.1.4
-
[rationale]:
Log files can contain valuable information regarding system
configuration. If the system log files are not protected unauthorized |
@teacup-on-rockingchair fyi, as we discussed in gitter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this rule @dodys . Please, take a look in my comments to make it simpler.
linux_os/guide/system/logging/rsyslog_filecreatemode/bash/shared.sh
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/tests/filecreatemode_0600.pass.sh
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing @dodys . I really liked the new approach. Much simpler and easier to review. I have only minor comments and we should be ready. I also tested this rule in RHEL products and it is working fine. I will be happy to propose the Ansible remediation for it soon.
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/oval/shared.xml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/logging/rsyslog_filecreatemode/bash/shared.sh
Outdated
Show resolved
Hide resolved
Code Climate has analyzed commit 468cfb8 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 51.7% (0.0% change). View more on Code Climate. |
Automatus tests are failing because the rule is restricted to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work in this new rule @dodys . The last update in the bash remediation is working fine in my tests too.
Overriding CODEOWNERS since a @dodys can't approve his own PR. |
My last tests finished and actually some two test scenarios are failing in RHEL7 only. I quickly checked and it seems to be a minor issue related to compatibility. Since this rule will be interesting for CIS in RHEL7 and I plan to include it pretty soon, I am fine to merge it now and fix any possible issue in RHEL7 when enabling this rule for RHEL. |
Fixed in #10328 |
Description:
Rationale: