CMP-4049: Add rules to RHCOS DS#14461
CMP-4049: Add rules to RHCOS DS#14461yuumasato wants to merge 3 commits intoComplianceAsCode:masterfrom
Conversation
69a6a41 to
0854ba4
Compare
rhmdnd
left a comment
There was a problem hiding this comment.
One question on adding additional CCEs for the RHCOS rules now that we're using them there. Otherwise looks good.
linux_os/guide/system/software/system-tools/package_python3-dnf_removed/rule.yml
Outdated
Show resolved
Hide resolved
|
Generally the PR is good. I have created a tailoredprofile for all newly added rules. After autoremediations applied, two rules failed, one rule was accounts-authorized-local-users , the other rule was package-python3-dnf-removed. After add rules "core|containers" to the variable upstream-rhcos4-var-accounts-authorized-local-users-regex, the rule accounts-authorized-local-users could PASS.
|
0854ba4 to
340d167
Compare
0fb640f to
07a0d8c
Compare
|
@rhmdnd Rebased, I'll propose them in separate PR. Makes it easier to merge this one. |
07a0d8c to
2cda2eb
Compare
|
@xiaojiey I have removed the new rules, will add them later. And I added a variable selector for RHCOS4. |
2cda2eb to
ced8ff7
Compare
rhmdnd
left a comment
There was a problem hiding this comment.
Only one rule recommendation inline, otherwise this looks good.
| - service_cups_disabled | ||
| - audit_rules_networkconfig_modification_network_scripts | ||
| - audit_rules_mac_modification_etc_selinux | ||
| - audit_rules_login_events_faillog |
There was a problem hiding this comment.
What about? That's similar to audit_rules_mac_modifications_etc_selinux.
- audit_rules_mac_modification_usr_share
There was a problem hiding this comment.
The rule is already in default.profile.
| - sshd_disable_root_password_login | ||
| - harden_sshd_crypto_policy | ||
| - file_ownership_audit_configuration | ||
| - audit_rules_mac_modification_usr_share |
|
After autoremediation applied, all rules PASS. The only thing is the default value of variable upstream-rhcos4-var-accounts-authorized-local-users-regex still doesn't work. Need to set it to '^(root|core|containers)$' manaully. |
Ensure RHCOS4 default variable value inline with the node's users. Ensure warning about no automated remediation is shown.
ced8ff7 to
d5d2636
Compare
|
@xiaojiey Thanks for your remark. |
|
Thank for the update, @yuumasato |
Description:
defaultprofile.Rationale:
TailoredProfilesin Compliance OperatorReview Hints: