Bug 1970529
| Summary: | oscap complains about missing resources even though they were downloaded locally | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Renaud Métrich <rmetrich> | |
| Component: | openscap | Assignee: | Jan Černý <jcerny> | |
| Status: | CLOSED ERRATA | QA Contact: | Matus Marhefka <mmarhefk> | |
| Severity: | low | Docs Contact: | Jan Fiala <jafiala> | |
| Priority: | low | |||
| Version: | 8.4 | CC: | amusil, ekolesni, gfialova, jafiala, jcerny, mhaicman, mperina, pandrade | |
| Target Milestone: | rc | Keywords: | AutoVerified, Triaged | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | openscap-1.3.5-10.el8 | Doc Type: | Enhancement | |
| Doc Text: |
.OpenSCAP can read local files
OpenSCAP can now consume local files instead of remote SCAP source data stream components. Previously, you could not perform a complete evaluation of SCAP source data streams containing remote components on systems that have no internet access. On these systems, OpenSCAP could not evaluate some of the rules in these data streams because the remote components needed to be downloaded from the internet. With this update, you can download and copy the remote SCAP source data stream components to the target system before performing the OpenSCAP scan and provide them to OpenSCAP by using the `--local-files` option with the `oscap` command.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 2015518 (view as bug list) | Environment: | ||
| Last Closed: | 2022-05-10 13:50:09 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: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2015518, 2015802, 2030226, 2030596 | |||
|
Description
Renaud Métrich
2021-06-10 16:12:16 UTC
The fix has been promoted to a documented feature and it has been merged into upstrem, see https://github.com/OpenSCAP/openscap/pull/1769 Note for person who will fix the bug in RHEL: Please don't forget about https://github.com/OpenSCAP/openscap/pull/1786 I'm changing priority and severity to low because I think it's an user experience problem and it doesn't mean that the user isn't able to run the scan. Even after downloading the remote files, because openscap cannot know if the files are up to date, the warning is still printed. There is a problem with ansible, because the messages are still printed to stderr, and it treats it as an error. Workaround is to use ansible with 'ignore_errors: true' what does not look ideal. Might need to clone and reassign this bug to use alternate options https://docs.ansible.com/ansible/latest/user_guide/playbooks_error_handling.html @jcerny: What about updating https://github.com/OpenSCAP/openscap/blob/maint-1.3/src/DS/sds.c#L410 to not print only in the verbose mode, but rather print it as a warning to the user? *** Bug 2027259 has been marked as a duplicate of this bug. *** 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 (openscap 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:1844 |