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 1311054 - [Bug] scap-security-guide package does not acknowledge Red Hat Compute Node as valid RHEL 6 OS
Summary: [Bug] scap-security-guide package does not acknowledge Red Hat Compute Node a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: scap-security-guide
Version: 6.5
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Watson Yuuma Sato
QA Contact: Marek Haicman
URL:
Whiteboard:
Depends On:
Blocks: 1269194 1343211
TreeView+ depends on / blocked
 
Reported: 2016-02-23 09:42 UTC by Adi Akbar
Modified: 2019-10-10 11:17 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-21 11:51:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0785 0 normal SHIPPED_LIVE scap-security-guide bug fix and enhancement update 2017-03-21 12:49:45 UTC

Description Adi Akbar 2016-02-23 09:42:52 UTC
Description of problem:

Customer has installed the openscap-1.0.10-3.el6 packages and the scap-security-guide-0.1.26-1.el6 packages, and when they run the scanner on a node running the Compute Node the Red Hat RPM GPG key test fails because the OS is not recognized, and the test assumes CentOS. They expect to see that the Red Hat Compute Node OS is properly recognized, and the RHEL 6 RPM GPG key is properly detected.

Version-Release number of selected component (if applicable):

RHEL HPC Node

How reproducible:

The Scap scanner properly detects the OS and the RPM GPG key when the /etc/system-release-cpe contains "workstation" or "server" but it does not correctly detect the RHEL OS when the file contains "computenode".

Actual results:

/etc/system-release-cpe does not contain computenode

Expected results:

/etc/system-release-cpe should contain computenode

Additional info:

The file /usr/share/xml/scap/ssg/content/ssg-rhel6-xccdf.xml  and ssg-rhel6-oval.xml  in the same directory from the package scap-security-guide need to be updated to accept the "computenode" string in the /etc/system-release-cpe file as a valid instance of the Red Hat 6 Linux OS.

Comment 2 Šimon Lukašík 2016-02-23 13:53:58 UTC
We do not look into /etc/system-release-cpe. We run an equivalent of command

  rpm -q --whatprovides /etc/redhat-release

as part of our CPE check. We have improved CPE in coming release. We have CPE dictionary in two places however: openscap and scap-security-guide packages.

I have verified that this bug is not present in the coming openscap-1.2.8-2.el6.x86_64 (rhel-6.8 beta).

  # oscap oval eval /usr/share/openscap/cpe/openscap-cpe-oval.xml | grep rhel:def:6
  Definition oval:org.open-scap.cpe.rhel:def:6: true
  # cat /etc/system-release-cpe 
  cpe:/o:redhat:enterprise_linux:6computenode:beta:computenode

We need to check scap-security-guide's CPE as well.

Comment 3 Šimon Lukašík 2016-02-23 14:02:33 UTC
The bug is present in the coming scap-security-guide-0.1.28-2.el6

  # oscap oval eval /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml | grep rhel6:def:1
  Definition oval:ssg-installed_OS_is_rhel6:def:1: false

On the other hand, we do not ship scap-security-guide package on ComputeNode. Does customer want to have scap-security-guide on ComputeNode?

Comment 4 Šimon Lukašík 2016-02-23 14:46:43 UTC
https://github.com/OpenSCAP/scap-security-guide/pull/1053

Comment 5 Shawn Wells 2016-02-24 03:06:59 UTC
Simon - Yes, SSG should be shipping for RHEL for Compute Node.

More broadly, shouldn't OpenSCAP + SSG be shipping for all RHEL variants?

Comment 6 Šimon Lukašík 2016-02-24 11:16:10 UTC
Ok, thanks Shawn, I have filed separate bugs (bug 1311490, bug https://bugzilla.redhat.com/show_bug.cgi?id=1311491) to track that.

Comment 7 Mike McCune 2016-03-28 22:47:43 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 11 Marek Haicman 2016-12-11 22:13:43 UTC
Verified fix in version scap-security-guide-0.1.28-3.el6.noarch

OLD (scap-security-guide-0.1.28-2.el6.noarch):
:: [   PASS   ] :: Command 'rpm -i rpms/RHEL6/redhat-release-computenode-*.x86_64.rpm' (Expected 0, got 0)
:: [   PASS   ] :: Command 'oscap oval eval /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml > output' (Expected 0, got 0)
:: [   INFO   ] :: Current redhat-release is redhat-release-computenode-6ComputeNode-6.9.0.1.el6.x86_64
:: [   INFO   ] :: Result: Definition oval:ssg-installed_OS_is_rhel6:def:1: false
:: [   FAIL   ] :: computenode is not covered by CPE definition 


NEW:
:: [   PASS   ] :: Command 'rpm -i rpms/RHEL6/redhat-release-computenode-*.x86_64.rpm' (Expected 0, got 0)
:: [   PASS   ] :: Command 'oscap oval eval /usr/share/xml/scap/ssg/content/ssg-rhel6-cpe-oval.xml > output' (Expected 0, got 0)
:: [   INFO   ] :: Current redhat-release is redhat-release-computenode-6ComputeNode-6.9.0.1.el6.x86_64
:: [   INFO   ] :: Result: Definition oval:ssg-installed_OS_is_rhel6:def:1: true
:: [   PASS   ] :: computenode is supported

Comment 13 errata-xmlrpc 2017-03-21 11:51:12 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://rhn.redhat.com/errata/RHBA-2017-0785.html


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