Bug 1914849

Summary: Rule accounts_passwords_pam_faillock_enforce_local fails to remediate
Product: Red Hat Enterprise Linux 8 Reporter: Matus Marhefka <mmarhefk>
Component: scap-security-guideAssignee: Marcus Burghardt <maburgha>
Status: CLOSED ERRATA QA Contact: Milan Lysonek <mlysonek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.4CC: ggasparb, maburgha, mhaicman, mlysonek, wsato
Target Milestone: rcKeywords: AutoVerified, Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: scap-security-guide-0.1.60-1.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 14:14:34 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:

Description Matus Marhefka 2021-01-11 10:38:21 UTC
Description of problem:
Rule accounts_passwords_pam_faillock_enforce_local from STIG profile fails to remediate.

Seems that "local_users_only" is properly set in the /etc/security/faillock.conf but the extended definition check fails https://github.com/ComplianceAsCode/content/blob/master/shared/checks/oval/accounts_password_pam_faillock.xml#L22 as there is no "pam_faillock.so" in the /etc/pam.d/system-auth file after remediation:

password    requisite                                    pam_pwquality.so try_first_pass local_users_only
password    sufficient                                   pam_unix.so sha512 shadow nullok try_first_pass use_authtok
password    sufficient                                   pam_sss.so use_authtok
password    required                                     pam_deny.so


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

How reproducible:
100%

Steps to Reproduce:
# oscap xccdf eval --remediate --rule xccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_enforce_local --profile stig /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml


Actual results:
Rule accounts_passwords_pam_faillock_enforce_local is reported as error after remediation.

Expected results:
Rule accounts_passwords_pam_faillock_enforce_local is reported as fixed after remediation.

Additional info:

Comment 5 Marcus Burghardt 2022-01-20 08:44:38 UTC
Merged in Upstream: https://github.com/ComplianceAsCode/content/pull/8040

Comment 13 errata-xmlrpc 2022-05-10 14:14:34 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-2022:1900