4.2.2.4 Ensure rsyslog default file permissions are configured
Audit#
Run the following command:
Verify the output matches:
Should a site policy dictate less restrictive permissions, ensure to follow said policy.NOTE: More restrictive permissions such as 0600 is implicitly sufficient.
Remediation#
Edit either /etc/rsyslog.conf or a dedicated .conf file in /etc/rsyslog.d/ and set $FileCreateMode to 0640 or more restrictive:
Restart the service: