Description of problem:
PR #14991 introduced new rule file_permissions_audit_configuration_stig. The rule fails in the test /hardening/host-os/ansible/stig on CentOS Stream.
The rule fails in the final OpenSCAP scan because /etc/audit/audit.rules has incorrect permissions - it has 0640 but the expected mode is 0600.
The fail isn't reproducible with RHEL, we couldn't reproduce it in a custom GitLab pipeline on RHEL, it happens only on CentOS Stream.
SCAP Security Guide Version:
Operating System Version:
CentOS Stream 8
CentOS Stream 9
Steps to Reproduce:
- Run contest test
/hardening/host-os/ansible/stig on CentOS Stream machine
Actual Results:
file_permissions_audit_configuration_stig is evaluated as fail in the post-remediaton scan
Expected Results:
file_permissions_audit_configuration_stig is evaluated as pass in the post-remediaton scan
Additional Information/Debugging Steps:
See the discussion in #14991
Description of problem:
PR #14991 introduced new rule
file_permissions_audit_configuration_stig. The rule fails in the test/hardening/host-os/ansible/stigon CentOS Stream.The rule fails in the final OpenSCAP scan because
/etc/audit/audit.ruleshas incorrect permissions - it has 0640 but the expected mode is 0600.The fail isn't reproducible with RHEL, we couldn't reproduce it in a custom GitLab pipeline on RHEL, it happens only on CentOS Stream.
SCAP Security Guide Version:
Operating System Version:
CentOS Stream 8
CentOS Stream 9
Steps to Reproduce:
/hardening/host-os/ansible/stigon CentOS Stream machineActual Results:
file_permissions_audit_configuration_stig is evaluated as
failin the post-remediaton scanExpected Results:
file_permissions_audit_configuration_stig is evaluated as
passin the post-remediaton scanAdditional Information/Debugging Steps:
See the discussion in #14991