freeipa / freeipa-healthcheck

Check the health of a freeIPA installation
GNU General Public License v3.0
50 stars 28 forks source link

Need to change log file permissions as per CIS benchmark #325

Closed tscherf closed 8 months ago

tscherf commented 8 months ago

As per CIS benchmark the log file permissions should be 640 but if we change /var/log/ipa-custodia.audit.log permissions to 640 then "ipa-healthcheck" reports a permission issue.

ipa-healthcheck --failures-only
[
  {
    "source": "ipahealthcheck.ipa.files",
    "check": "IPAFileCheck",
    "result": "ERROR",
    "uuid": "0abfd5fe-b7f7-4e3a-bac0-314f3a5f9c54",
    "when": "20240306081547Z",
    "duration": "0.002899",
    "kw": {       "key": "_var_log_ipa-custodia.audit.log_mode",       "path": "/var/log/ipa-custodia.audit.log",       "type": "mode",       "expected": "0644",       "got": "0640",       "msg": "Permissions of /var/log/ipa-custodia.audit.log are too restrictive: 0640 and should be 0644"     }

Below are the affected files:

/var/log/ipa-custodia.audit.log /var/log/httpd/error_log /var/log/pki/pki-tomcat/ca/debug*