Bug 2169857
Summary: | Applying CIS benchmark fix cause systemd-journald to unable to parse configuration file | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Adam Ibrahim <adibrahi> | |
Component: | scap-security-guide | Assignee: | Jan Černý <jcerny> | |
Status: | CLOSED ERRATA | QA Contact: | Milan Lysonek <mlysonek> | |
Severity: | unspecified | Docs Contact: | Petr Hybl <phybl> | |
Priority: | unspecified | |||
Version: | 8.7 | CC: | albert.campanya.soler, ekolesni, ggasparb, irene.diaz, jcerny, jjaburek, mhaicman, mjahoda, mlysonek, mmarhefk, vpolasek, wsato | |
Target Milestone: | rc | Keywords: | AutoVerified, Triaged, ZStream | |
Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | scap-security-guide-0.1.69-1.el8 | Doc Type: | Bug Fix | |
Doc Text: |
.SCAP `journald` rules no longer remediate to invalid configuration
Previously, the SCAP Security Guide rules `journald_compress`, `journald_forward_to_syslog`, and `journald_storage` contained a bug in the remediation script which added extra quotes to the respective options within the `/etc/systemd/journald.conf` configuration file. Consequently, the `journald` service failed to parse the configuration options and ignored them. Therefore, the configuration options were not effective and OpenSCAP reported false pass results. With this update, the rules and remediations scripts have been fixed to not add the extra quotes. The rule now create a valid configuration for `journald`.
|
Story Points: | --- | |
Clone Of: | ||||
: | 2228437 2228438 (view as bug list) | Environment: | ||
Last Closed: | 2023-11-14 15:36:38 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2228437, 2228438 |
Description
Adam Ibrahim
2023-02-14 20:02:58 UTC
analysis: The issue is reproducible with scap-security-guide-0.1.63-5.el8.noarch and is also present in current upstream as of 2023-02-20 as of HEAD 9a2ca6d9d4c41c5c5b6fe9a20a276271b0eb3db2. The problem is excess quotes in OVAL, Bash and Ansible in rule journald_storage. A possible fix can be to set "no_quotes: true" in the rule.yml in rule journald_storage. Switching from openscap to correct component. There is a similar BZ for RHEL 8 with a broader scope https://bugzilla.redhat.com/show_bug.cgi?id=2193169. When fixing, you will need to examine all other similar rules that configure journald and/or use the shell_lineinfile template. There exists an already merged PR https://github.com/ComplianceAsCode/content/pull/10790 which implements the proposed solution. A test for this BZ has been submitted to upstream for a review in https://github.com/ComplianceAsCode/content/pull/10817. PRs https://github.com/ComplianceAsCode/content/pull/10790 and https://github.com/ComplianceAsCode/content/pull/10817 have been merged upstream. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (scap-security-guide bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:7056 |