RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1914849 - Rule accounts_passwords_pam_faillock_enforce_local fails to remediate
Summary: Rule accounts_passwords_pam_faillock_enforce_local fails to remediate
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: scap-security-guide
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 8.0
Assignee: Marcus Burghardt
QA Contact: Milan Lysonek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-11 10:38 UTC by Matus Marhefka
Modified: 2022-05-10 14:42 UTC (History)
5 users (show)

Fixed In Version: scap-security-guide-0.1.60-1.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 14:14:34 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2022:1900 0 None None None 2022-05-10 14:14:44 UTC

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


Note You need to log in before you can comment on or make changes to this bug.