Bug 1967566

Summary: dconf_gnome_login_retries remediation results in error and breaks dconf configuration file
Product: Red Hat Enterprise Linux 7 Reporter: Milan Lysonek <mlysonek>
Component: scap-security-guideAssignee: Vojtech Polasek <vpolasek>
Status: CLOSED ERRATA QA Contact: Milan Lysonek <mlysonek>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.9CC: ggasparb, jreznik, mhaicman, wsato
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: scap-security-guide-0.1.54-5.el7_9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-21 01:06:27 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:
Attachments:
Description Flags
first remediation run
none
second remediation run none

Description Milan Lysonek 2021-06-03 11:39:02 UTC
Description of problem:
The dconf_gnome_login_retries rule results in error during remediation. The dconf_gnome_login_retries remediation breaks dconf configuration file - /etc/dconf/db/gdm.d/00-security-settings.
With the broken dconf configuration file, it is not possible to remediate the dconf_db_up_to_date rule.

Version-Release number of selected component (if applicable):
scap-security-guide-0.1.54-3.el7_9.noarch

How reproducible:
100%

Steps to Reproduce:
1. oscap xccdf eval --profile ncp --remediate --report report_1.html /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml
2. oscap xccdf eval --profile ncp --remediate --report report_2.html /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml

Actual results:
dconf_gnome_login_retries results in error during both remediations
dconf_db_up_to_date results in error during second remediation run

Expected results:
Both rules pass in both remediation runs

Additional info:
dconf rules are evaluated only on machines installed with GUI packages.

Both rules are only in NCP profile for rhel7.

Both rules show same error message:
unable compile /etc/dconf/db/gdm.d: /etc/dconf/db/gdm.d/00-security-settings: [org/gnome/login-screen]: allowed-failures3gdm.d: invalid value: 00-security-settings (2-3:invalid character in number)

Problematic line from /etc/dconf/db/gdm.d/00-security-settings:
allowed-failures3gdm.d=00-security-settings

Comment 2 Milan Lysonek 2021-06-03 11:41:00 UTC
Created attachment 1788828 [details]
first remediation run

Comment 3 Milan Lysonek 2021-06-03 11:42:24 UTC
Created attachment 1788829 [details]
second remediation run

Comment 4 Milan Lysonek 2021-06-03 11:44:49 UTC
The uploaded HTML reports are from the commands from "Steps to Reproduce".

Comment 5 Vojtech Polasek 2021-06-03 13:43:49 UTC
Fixed upstream:
https://github.com/ComplianceAsCode/content/pull/6999

Comment 6 Watson Yuuma Sato 2021-06-04 07:18:41 UTC
This is a simple and straightforward fix.

Comment 17 Milan Lysonek 2021-06-24 13:01:57 UTC
Verified for scap-security-guide-0.1.54-6.el7_9. The rules pass in the new package version.

Comment 21 errata-xmlrpc 2021-07-21 01:06:27 UTC
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 and enhancement 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-2021:2803