-
Notifications
You must be signed in to change notification settings - Fork 96
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
4.2.3 | PATCH | Ensure permissions on all logfiles are configured - Not idempotent with Molecule #173
Labels
bug
Something isn't working
Comments
rjacobs1990
added a commit
to rjacobs1990/RHEL9-CIS
that referenced
this issue
Feb 12, 2024
Signed-off-by: rjacobs1990 <[email protected]>
rjacobs1990
added a commit
to rjacobs1990/RHEL9-CIS
that referenced
this issue
Feb 12, 2024
…ng 0600 ansible-lockdown#173 Signed-off-by: rjacobs1990 <[email protected]>
updated the mode setting to: "{{ '0600' if item.mode == '0600' else '0640' }}" |
rjacobs1990
added a commit
to rjacobs1990/RHEL9-CIS
that referenced
this issue
Feb 12, 2024
…wn#173 Signed-off-by: rjacobs1990 <[email protected]>
hi @rjacobs1990 Great work on the issue and PR i have feedback on the PR. Many thanks again uk-bolly |
uk-bolly
added a commit
that referenced
this issue
Feb 19, 2024
fix: idempotency molecule issue fixed for logfiles #173
ipruteanu-sie
pushed a commit
to siemens/RHEL9-CIS
that referenced
this issue
Feb 21, 2024
Signed-off-by: rjacobs1990 <[email protected]>
ipruteanu-sie
pushed a commit
to siemens/RHEL9-CIS
that referenced
this issue
Feb 21, 2024
…ng 0600 ansible-lockdown#173 Signed-off-by: rjacobs1990 <[email protected]>
ipruteanu-sie
pushed a commit
to siemens/RHEL9-CIS
that referenced
this issue
Feb 21, 2024
…wn#173 Signed-off-by: rjacobs1990 <[email protected]>
ipruteanu-sie
pushed a commit
to siemens/RHEL9-CIS
that referenced
this issue
Mar 11, 2024
Signed-off-by: rjacobs1990 <[email protected]>
ipruteanu-sie
pushed a commit
to siemens/RHEL9-CIS
that referenced
this issue
Mar 11, 2024
…ng 0600 ansible-lockdown#173 Signed-off-by: rjacobs1990 <[email protected]>
ipruteanu-sie
pushed a commit
to siemens/RHEL9-CIS
that referenced
this issue
Mar 11, 2024
…wn#173 Signed-off-by: rjacobs1990 <[email protected]>
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Issue
4.2.3 | PATCH | Ensure permissions on all logfiles are configured. Unfortunately this step is not idempotent.
When running a cis-wrapper role which is calling this role i noticed that the audit.log kept changing during the molecule idempotency run on aws/azure alma or rhel machines.
changed: [almalinux-9-x86_64] => (item=/var/log/audit/audit.log)
Expected Behavior
I would like to see no changes in file permissions during the second run.
Actual Behavior
The second run is changing the following files:
changed: [almalinux-9-x86_64] => (item=/var/log/audit/audit.log)
Control(s) Affected
What controls are being affected by the issue
4.2.3 | PATCH | Ensure permissions on all logfiles are configured.
Environment (please complete the following information):
i think the issue is partially caused by the audit.conf where the log_group is set to root. During rotation it will set the permissions back to 600.
Additional Notes
N/A
Possible Solution
Below code could be a potential fix for the issue:
The text was updated successfully, but these errors were encountered: