Bug 2050071 - Use authselect in RHV-H and appliance images
Summary: Use authselect in RHV-H and appliance images
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: rhvm-appliance
Version: 4.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.5.0-1
: 4.5.0
Assignee: Sanja Bonic
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks: 2015796 2015802
TreeView+ depends on / blocked
 
Reported: 2022-02-03 07:40 UTC by Ales Musil
Modified: 2022-06-07 15:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-07 15:22:53 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-appliance pull 26 0 None open auth is deprecated and replaced by authselect 2022-02-24 14:45:05 UTC
Github oVirt ovirt-node-ng-image pull 10 0 None Merged auth is deprecated and replaced by authselect 2022-02-24 14:46:25 UTC
Github oVirt ovirt-node-ng-image pull 19 0 None Merged tests: fix missing authselect 2022-02-24 14:46:25 UTC
Red Hat Issue Tracker RHV-44609 0 None None None 2022-02-03 10:56:05 UTC
Red Hat Product Errata RHSA-2022:4931 0 None None None 2022-06-07 15:23:11 UTC

Description Ales Musil 2022-02-03 07:40:16 UTC
Description of problem:
The rules related to PAM are failing with following message:
"
System was not configured with authselect.

authselect integrity check failed. Remediation aborted!
This remediation could not be applied because the authselect profile is not intact.
It is not recommended to manually edit the PAM files when authselect is available.
In cases where the default authselect profile does not cover a specific demand, a custom authselect profile is recommended.
"

Relevant rules:
xccdf_org.ssgproject.content_rule_accounts_password_pam_pwhistory_remember_password_auth
xccdf_org.ssgproject.content_rule_accounts_password_pam_pwhistory_remember_system_auth
xccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_deny
xccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_deny_root
xccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_interval
xccdf_org.ssgproject.content_rule_accounts_passwords_pam_faillock_unlock_time
xccdf_org.ssgproject.content_rule_display_login_attempts
xccdf_org.ssgproject.content_rule_no_empty_passwords

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

How reproducible:
100%

Steps to Reproduce:
1. Apply DISA STIG with anaconda
2. Install ovirt-host
3. oscap xccdf eval --remediate --rule $ANY_OF_THE_RULES_ABOVE --profile xccdf_org.ssgproject.content_profile_stig --oval-results /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml

Actual results:
The remediation fails.

Expected results:
It should fix the issue.

Comment 1 Ales Musil 2022-02-03 07:52:49 UTC
After further checking the ovirt-host does not need to be installed.

Comment 2 Ales Musil 2022-02-03 08:10:07 UTC
Looks like the issue is within the remediation code e.g.

https://github.com/ComplianceAsCode/content/blob/stable/linux_os/guide/system/accounts/accounts-pam/locking_out_password_attempts/accounts_password_pam_unix_remember/ansible/shared.yml#L13

The "authselect check" returns "System was not configured with authselect." rc=2 on those systems, but the remediation does not seem to take that in account.

Comment 3 Watson Yuuma Sato 2022-02-03 10:16:58 UTC
Hi,

The problem seems be on the installation kickstart, it is not configuring 'authselect',I have noticed the 'authselect' command doesn't select a profile.

I have logged into the image and selected a profile with:
authselect select sssd with-fingerprint

and then the PAM remediations from the STIG profile were applied successfully.

Comment 4 Watson Yuuma Sato 2022-02-21 17:55:19 UTC
Hi,

just a note that we are looking into adding a rule into each profile to ensure that authselect is enabled during install.
So if the kickstart doesn't explicitly select one authselect profile, our SCAP profile will select one (probably minimal or sssd).

Comment 9 errata-xmlrpc 2022-06-07 15:22:53 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 (Moderate: RHV Appliance (rhvm-appliance) security update [ovirt-4.5.0]), 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/RHSA-2022:4931


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