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 1431186 - systemd probes are crashing during scanning Docker container
Summary: systemd probes are crashing during scanning Docker container
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openscap
Version: 7.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Černý
QA Contact: Matus Marhefka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-10 14:42 UTC by Matus Marhefka
Modified: 2017-08-01 08:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 08:45:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:2291 0 normal SHIPPED_LIVE openscap bug fix update 2017-08-01 12:38:59 UTC

Description Matus Marhefka 2017-03-10 14:42:07 UTC
Description of problem:
Openscap systemd probes are crashing during scanning Docker containers. This probably happens because containers do not have systemd running inside them by default.


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


How reproducible:
always


Steps to Reproduce:
1. docker run --rm -it rhel7 bash
2. yum install -y openscap scap-security-guide
   - you will need to add a repository to the container as by default there are none
3. oscap xccdf eval --remediate --profile xccdf_org.ssgproject.content_profile_pci-dss /usr/share/xml/scap/ssg/content/ssg-rhel7-ds.xml


Actual results:
OpenSCAP Error: Probe at sd=8 (systemdunitdependency) reported an error: Unknown error [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]
Probe at sd=8 (systemdunitdependency) reported an error: Unknown error [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]
Probe at sd=8 (systemdunitdependency) reported an error: Unknown error [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]
Probe at sd=8 (systemdunitdependency) reported an error: Unknown error [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]


Expected results:
Scan finishes without errors.

Comment 2 Matus Marhefka 2017-03-10 14:54:10 UTC
Bug occurs for scap-security-guide-0.1.30-3.el7.noarch but also for the newest SSG built from github repo.

Comment 3 Jan Černý 2017-03-21 07:11:27 UTC
A fix was merged upstream https://github.com/OpenSCAP/openscap/pull/708

Comment 6 Matus Marhefka 2017-04-27 10:12:59 UTC
VERIFIED as fixed for openscap-1.2.14-1.el7.x86_64


OLD - openscap-1.2.10-2.el7.x86_64:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Scanning rhel7 container -- storing output in /tmp/tmp.hHmMlL1cTM (Expected 0-255, got 2)
...
Title   Set SSH Idle Timeout Interval
Rule    xccdf_org.ssgproject.content_rule_sshd_set_idle_timeout
Ident   CCE-27433-2
Result  pass
...
OpenSCAP Error: Probe at sd=8 (systemdunitdependency) reported an error: Unknown error [oval_probe_ext.c:393]
...
:: [   FAIL   ] :: File '/tmp/tmp.hHmMlL1cTM' should not contain 'error'



NEW - openscap-1.2.14-1.el7.x86_64:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Scanning rhel7 container -- storing output in /tmp/tmp.I9aOsb2b1y (Expected 0-255, got 2)
:: [   PASS   ] :: File '/tmp/tmp.I9aOsb2b1y' should not contain 'error'

Comment 7 errata-xmlrpc 2017-08-01 08:45:48 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-2017:2291


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