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 1603347 - double chdir/chroot in probe rpmverifypackage
Summary: double chdir/chroot in probe rpmverifypackage
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openscap
Version: 7.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: alpha
: ---
Assignee: Jan Černý
QA Contact: BaseOS QE Security Team
Mirek Jahoda
URL:
Whiteboard:
Depends On:
Blocks: 1646197
TreeView+ depends on / blocked
 
Reported: 2018-07-19 14:29 UTC by Matus Marhefka
Modified: 2019-03-12 14:32 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
*OpenSCAP* `rpmverifypackage` does not work correctly The `chdir` and `chroot` system calls are called twice by the `rpmverifypackage` probe. Consequently, an error occurs when the probe is utilized during an *OpenSCAP* scan with custom Open Vulnerability and Assessment Language (OVAL) content. To work around this problem, do not use the `rpmverifypackage_test` OVAL test in your content or use only the content from the _scap-security-guide_ package where `rpmverifypackage_test` is not used.
Clone Of:
: 1646197 (view as bug list)
Environment:
Last Closed: 2019-03-12 14:32:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
probe_test_rpm.oval.xml (7.15 KB, application/xml)
2018-07-19 14:31 UTC, Matus Marhefka
no flags Details

Description Matus Marhefka 2018-07-19 14:29:58 UTC
Description of problem:
# oscap-docker image registry.access.redhat.com/rhel7 oval eval --id oval:my:def:6 probe_test_rpm.oval.xml

Command: oscap oval eval --id oval:my:def:6 --results /dev/stdout probe_test_rpm.oval.xml failed!
Command returned exit code 1.
E: probe_rpmverifypackage: RPM: Failed to initialize NSS library

error: Failed to initialize NSS library
E: probe_rpmverifypackage: Unable to chdir to '/tmp/tmp8iWJcD/e0f879ff19f6266f31f7', errno: 2 "No such file or directory"
W: oscap:     Can't receive message: 125, Operation canceled.
E: oscap:     Recv: retry limit (0) reached.
OpenSCAP Error: Probe at sd=1 (rpmverifypackage) reported an error: Initialization failed [oval_probe_ext.c:393]
Unable to receive a message from probe [oval_probe_ext.c:579]
Invalid oval result type: -1. [oval_resultTest.c:179]


Version-Release number of selected component (if applicable):
openscap-1.2.17-1.el7.x86_64
openscap-scanner-1.2.17-1.el7.x86_64
openscap-utils-1.2.17-1.el7.x86_64
openscap-containers-1.2.17-1.el7.noarch


How reproducible:
always


Steps to Reproduce:
See the description.

Comment 1 Matus Marhefka 2018-07-19 14:31:23 UTC
Created attachment 1460350 [details]
probe_test_rpm.oval.xml

Comment 3 Matus Marhefka 2018-08-17 11:43:42 UTC
Upstream issue: https://github.com/OpenSCAP/openscap/issues/1173

Comment 6 Marek Haicman 2019-03-12 14:32:36 UTC
This issue was not selected to be included in Red Hat Enterprise Linux 7.7 because it is seen either as low or moderate impact to a small number of use-cases. The next release will be in Maintenance Support 1 Phase, which means that qualified Critical and Important Security errata advisories (RHSAs) and Urgent Priority Bug Fix errata advisories (RHBAs) may be released as they become available. We will now close this issue, but if you believe that it qualifies for the Maintenance Support 1 Phase, please re-open; otherwise, we recommend moving the request to Red Hat Enterprise Linux 8 if applicable.


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