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 2027259 - oscap skips the local offline XML
Summary: oscap skips the local offline XML
Keywords:
Status: CLOSED DUPLICATE of bug 1970529
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: openscap
Version: 8.6
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jan Černý
QA Contact: BaseOS QE Security Team
Jan Fiala
URL:
Whiteboard:
Depends On:
Blocks: 2015802
TreeView+ depends on / blocked
 
Reported: 2021-11-29 09:00 UTC by Ales Musil
Modified: 2021-12-02 15:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-29 10:24:06 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-104118 0 None None None 2021-11-29 09:04:06 UTC

Description Ales Musil 2021-11-29 09:00:27 UTC
Description of problem:
There is a KCS for running oscap in "offline" mode [0]. But doing those steps 
from KCS still result in skipping the XML file.

[0] https://access.redhat.com/solutions/5185891

Version-Release number of selected component (if applicable):
openscap-1.3.5-10.el8.x86_64
openscap-scanner-1.3.5-10.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. curl -L -o security-data-oval-com.redhat.rhsa-RHEL8.xml https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL8.xml
2. oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_stig --rule xccdf_org.ssgproject.content_rule_configure_bind_crypto_policy /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml 2>&1 | grep "Skipping"

Actual results:
WARNING: Skipping ./security-data-oval-com.redhat.rhsa-RHEL8.xml file which is referenced from XCCDF content

Expected results:
Should use the file that is available locally.

Comment 1 Jan Černý 2021-11-29 10:24:06 UTC
Hi, starting from the version openscap-1.3.5-8.el8 you should use the --local-files option to point to the local file. See the section 12 "Using external or remote resources" of the OpenSCAP User manual. 

For example:
mkdir scap-files
wget -O scap-files/security-data-oval-com.redhat.rhsa-RHEL8.xml https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL8.xml
oscap xccdf eval --local-files ~/scap-files --profile xccdf_org.ssgproject.content_profile_stig /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml

*** This bug has been marked as a duplicate of bug 1970529 ***

Comment 2 Ales Musil 2021-11-29 10:26:30 UTC
Hi, 
can the KCS be updated to reflect that? 

Thank you.

Comment 3 Jan Černý 2021-11-29 10:36:25 UTC
Great idea! I will try to get that article updated. I will keep you posted.

Comment 4 Jan Černý 2021-12-02 15:26:31 UTC
The KCS https://access.redhat.com/solutions/5185891 now reflects the rhel-8.6 change and the https://bugzilla.redhat.com/show_bug.cgi?id=1970529 contains a documentation text.


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