Skip to content

scap-security-guide: Fix errors when remediating journald rules

Fix the following error:

"""
Remediating rule 69/216:'xccdf_org.ssgproject.content_rule_file_groupowner_system_journal'
chgrp: cannot access '^/var/log/journal/.*/system.journal$': No such file or directory
Remediating rule 70/216: 'xccdf_org.ssgproject.content_rule_file_owner_journalctl'
Remediating rule 71/216: 'xccdf_org.ssgproject.content_rule_file_owner_system_journal'
chown: cannot access '^/var/log/journal/.*/system.journal$': No such file or directory
Remediating rule 72/216: 'xccdf_org.ssgproject.content_rule_file_permissions_journalctl'
Remediating rule 73/216: 'xccdf_org.ssgproject.content_rule_file_permissions_system_journal'
chmod: cannot access '^/var/log/journal/.*/system.journal$': No such file or directory
"""
Backport the patches from 0b205de5[1] and 84a9e52b0[2]

Add elxr.sh for these above rules to Set the appropriate permissions to
the files and directories, as did it on commit 0b205de5[1].

[1] https://github.com/ComplianceAsCode/content/commit/0b205de55a9c8855c80e4506be852165e100cd1a
[2] https://github.com/ComplianceAsCode/content/commit/84a9e52b09b2c143cdc020aacc8880c6c7aa1632

Screenshot-00

The result: Screenshot-01

Signed-off-by: Haitao Liu haitao.liu@windriver.com

Edited by HaitaoLiu

Merge request reports

Loading