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 1719769 - Bash remediation for configure_opensc_card_drivers and force_opensc_card_drivers fails to apply
Summary: Bash remediation for configure_opensc_card_drivers and force_opensc_card_driv...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: scap-security-guide
Version: 7.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 7.8
Assignee: Watson Yuuma Sato
QA Contact: Milan Lysonek
RaTasha Tillery-Smith
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-12 14:06 UTC by Gabriel Gaspar Becker
Modified: 2020-03-31 19:38 UTC (History)
6 users (show)

Fixed In Version: scap-security-guide-0.1.45-2.el7
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-31 19:38:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Report from OAA installation with NCP (previous OSPP) profile (4.85 MB, application/xhtml+xml)
2019-09-24 09:06 UTC, Milan Lysonek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1019 0 None None None 2020-03-31 19:38:35 UTC

Description Gabriel Gaspar Becker 2019-06-12 14:06:49 UTC
Description of problem:
Bash remediation for both rules fail to apply,
configure_opensc_card_drivers and force_opensc_card_drivers

Description of problem:
When running a fresh installation of RHEL7.7 (RHEL-7.7-20190606.n.0) and selecting OSPP profile in Security Policy section, the rules configure_opensc_card_drivers and force_opensc_card_drivers fail to remediate and the rules state produced are "error".


Version-Release number of selected component (if applicable):
scap-security-guide-0.1.43-12.el7.noarch.rpm

How reproducible:
100%

Steps to Reproduce:
1. Run fresh installation of RHEL7.7
2. Select OSPP profile in Security Policy section
3. Evaluate the HTML report and check that both rules (configure_opensc_card_drivers and force_opensc_card_drivers) have the status as "error"

Steps to Reproduce 2:
1. oscap xccdf eval --remediate --profile ospp --rule xccdf_org.ssgproject.content_rule_configure_opensc_card_drivers /usr/share/xml/scap/ssg/ssg-rhel7-ds.xml
2. oscap xccdf eval --remediate --profile ospp --rule xccdf_org.ssgproject.content_rule_force_opensc_card_drivers /usr/share/xml/scap/ssg/ssg-rhel7-ds.xml

Actual results:
configure_opensc_card_drivers errors
force_opensc_card_drivers errors

Expected results:
configure_opensc_card_drivers passes
force_opensc_card_drivers passes


Additional info:
In RHEL7.7 the file (/etc/opensc*.conf) which holds the configuration checked by aforementioned rules doesn't have any default configuration and the remediation doesn't know how to handle missing values.

Comment 2 Gabriel Gaspar Becker 2019-06-12 14:09:59 UTC
Fixed upstream: https://github.com/ComplianceAsCode/content/pull/4377

Comment 4 Watson Yuuma Sato 2019-08-15 15:24:06 UTC
Fixed by rebase to 0.1.45.

Comment 6 Milan Lysonek 2019-09-24 09:06:57 UTC
Created attachment 1618539 [details]
Report from OAA installation with NCP (previous OSPP) profile

Comment 7 Milan Lysonek 2019-09-24 09:16:49 UTC
Verified for scap-security-guide-0.1.46-1.el7.
Tested on fresh RHEL 7.8 installation using OAA with NCP profile (old OSPP profile contains configure_opensc_card_drivers and force_opensc_card_drivers, new OSPP doesn't) and both rules are passing - see attached html report (comment 6). After installation both rules were verified also with "oscap xccdf eval" and they pass.

Comment 9 errata-xmlrpc 2020-03-31 19:38:15 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, 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-2020:1019


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