Skip to content

Conversation

@jan-cerny
Copy link
Collaborator

Fix rules fix_permissions_var_log_audit and directory_permissions_var_log_audit.

This rule description wasn't aligned with OVAL and remediations. There
were product specific conditions that aren't justified. In this commit
the code has been consolidated so that it works the same on all
platforms. Inconsistencies have been removed and clarified. Ansible
remediation has been simplified and aligned with the Bash remediation.
Finally, test scenarios have been reworked.

Resolves: https://issues.redhat.com/browse/RHEL-138549

This rule description wasn't aligned with OVAL and remediations. There
were product specific conditions that aren't justified. In this commit
the code has been consolidated so that it works the same on all
platforms. Inconsistencies have been removed and clarified. Special OVAL
for SLES 15 has been merged into the generic OVAL. Ansible remediation
has been simplified and aligned with the Bash remediation. Finally, all
test scenarios have been reworked.

Resolves: https://issues.redhat.com/browse/RHEL-138549
@jan-cerny jan-cerny added this to the 0.1.80 milestone Jan 9, 2026
@jan-cerny jan-cerny added the bugfix Fixes to reported bugs. label Jan 9, 2026
@openshift-ci
Copy link

openshift-ci bot commented Jan 9, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Used by openshift-ci bot. label Jan 9, 2026
This rule description wasn't aligned with OVAL and remediations. There
were product specific conditions that aren't justified. In this commit
the code has been consolidated so that it works the same on all
platforms. Inconsistencies have been removed and clarified. Ansible
remediation has been simplified and aligned with the Bash remediation.
Finally, test scenarios have been reworked.

Resolves: https://issues.redhat.com/browse/RHEL-138549
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

ATEX Test Results

Test artifacts have been submitted to Testing Farm.

Results: View Test Results
Workflow Run: View Workflow Details

This comment was automatically generated by the ATEX workflow.

@jan-cerny
Copy link
Collaborator Author

I have confirmed that this PR fixes the linked issue https://issues.redhat.com/browse/RHEL-138549 therefore I will mark this as ready for review.

@jan-cerny jan-cerny marked this pull request as ready for review January 12, 2026 14:57
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Used by openshift-ci bot. label Jan 12, 2026
@Mab879 Mab879 self-assigned this Jan 12, 2026
Copy link
Member

@Mab879 Mab879 left a comment

Choose a reason for hiding this comment

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

Should linux_os/guide/auditing/auditd_configure_rules/file_permissions_var_log_audit/bash/shared.sh still lists all of the platforms?

documentation_complete: true


title: 'System Audit Logs Must Have Mode 0640 or Less Permissive'
Copy link
Member

Choose a reason for hiding this comment

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

Is 640 or 600?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

0640 or less permissive

0600 if the log_group is root
0640 if the log_group isn't root

I updated the rule description, it was confusing

Minor changes based on the PR review
@jan-cerny
Copy link
Collaborator Author

I have updated the PR according to your feedback

@Mab879 Mab879 merged commit b27f618 into ComplianceAsCode:master Jan 13, 2026
140 of 142 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes to reported bugs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants