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 1344762 - openscap rpmverifypackage probe might fail while scanning chrooted environment
Summary: openscap rpmverifypackage probe might fail while scanning chrooted environment
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openscap
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jan Černý
QA Contact: Marek Haicman
URL:
Whiteboard:
Depends On:
Blocks: 1278147
TreeView+ depends on / blocked
 
Reported: 2016-06-10 16:38 UTC by Marek Haicman
Modified: 2017-05-17 10:01 UTC (History)
4 users (show)

Fixed In Version: openscap-1.2.10-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-17 10:01:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Marek Haicman 2016-06-10 16:38:03 UTC
Description of problem:
When rpmverifypackage probe is run, it partly uses libraries from the chrooted environment. Because of that, if libraries on the host and in chroot are of incompatible version, error may occur.


Version-Release number of selected component (if applicable):
openscap-1.2.9-5.el7.x86_64

How reproducible:
reliably

Steps to Reproduce:
1. use oscap-docker command on RHEL7.2 machine to scan fedora image with nss and nss-softokn version lower than 3.24

Actual results:
probe fails with "error: Failed to initialize NSS library"

Expected results:
rpmverifypackage works

Comment 1 Jan Černý 2016-06-22 15:17:58 UTC
Fixed upstream in https://github.com/OpenSCAP/openscap/pull/440

Comment 2 Marek Haicman 2016-09-17 08:22:39 UTC
Verified in version openscap-1.2.10-2.el7.x86_64, issue is fixed.

Old:
:: [ 02:34:01 ] ::   openscap-1.2.9-5.el7_2.x86_64
:: [  BEGIN   ] :: Running 'oscap-docker container f8b916e31a64312637592f81b6a8940726479cde162be14864c9c9b0d40fbe71 oval eval --id oval:my:def:5 --results /dev/stdout probe_test_rpm.oval.xml | grep '<lin-sys:name>coreutils</lin-sys:name>''
error: Failed to initialize NSS library
OpenSCAP Error: Unable to close probe sd [oval_probe_ext.c:424]
Unable to receive a message from probe [oval_probe_ext.c:579]
Invalid oval result type: -1. [oval_resultTest.c:179]
:: [   FAIL   ] :: Command 'oscap-docker container f8b916e31a64312637592f81b6a8940726479cde162be14864c9c9b0d40fbe71 oval eval --id oval:my:def:5 --results /dev/stdout probe_test_rpm.oval.xml | grep '<lin-sys:name>coreutils</lin-sys:name>'' (Expected 0, got 1)


New:
:: [ 02:21:40 ] ::   openscap-1.2.10-2.el7.x86_64
:: [  BEGIN   ] :: Running 'oscap-docker container 7d9735aa4d328e3130b79296a88fe4530319cfa69c68870b4c7651a44de04019 oval eval --id oval:my:def:5 --results /dev/stdout probe_test_rpm.oval.xml | grep '<lin-sys:name>coreutils</lin-sys:name>''
            <lin-sys:name>coreutils</lin-sys:name>
:: [   PASS   ] :: Command 'oscap-docker container 7d9735aa4d328e3130b79296a88fe4530319cfa69c68870b4c7651a44de04019 oval eval --id oval:my:def:5 --results /dev/stdout probe_test_rpm.oval.xml | grep '<lin-sys:name>coreutils</lin-sys:name>'' (Expected 0, got 0)

Comment 5 Marek Haicman 2017-05-17 10:01:08 UTC
Version openscap-1.2.10-2.el7.x86_64 was part of RHEL 7.3.0 release


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