Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RHEL/6] scap_org.open-scap_datastream_from_xccdf_ssg-rhel6-xccdf-1.2.xml - Every <xccdf:platform> or <cpe2:fact-ref> MUST match as EQUAL or SUPERSET to a CPE in a CPE dictionary component of this data stream. #1042

Closed
iankko opened this issue Feb 16, 2016 · 0 comments
Assignees
Labels
bugfix Fixes to reported bugs.

Comments

@iankko
Copy link

iankko commented Feb 16, 2016

The NIST SCAP content validation testsuite requires every <xccdf:platform> element specified in <xccdf:benchmark> element to match as EQUAL or SUPERSET to a CPE in a CPE dictionary component for that particular data stream. The specific error message from validation (https://jlieskov.fedorapeople.org/scap-scapversion-1.2-validation-result.html) is as follows:

15-1    1
(of 1)  ERROR   SCHEMATRON  scap_org.open-scap_datastream_from_xccdf_ssg-rhel6-xccdf-1.2.xml - Every <xccdf:platform> or <cpe2:fact-ref> MUST match as EQUAL or SUPERSET to a CPE in a CPE dictionary component of this data stream.    

xccdf:platform cpe:/o:redhat:enterprise_linux:6::client in ds:data-stream scap_org.open-scap_datastream_from_xccdf_ssg-rhel6-xccdf-1.2.xml

Schematron Context:
/*:data-stream-collection[namespace-uri()='http://scap.nist.gov/schema/scap/source/1.2'][1]/*:data-stream[namespace-uri()='http://scap.nist.gov/schema/scap/source/1.2'][1]     if( function-available('java:isEqualOrSuperset') ) then (every $m in ds:checklists/ds:component-ref satisfies ((every $n in xcf:get-component($m)//xccdf:platform[not(starts-with(@idref,'#'))] satisfies some $o in ds:dictionaries/ds:component-ref satisfies some $p in xcf:get-component($o)//cpe-dict:cpe-item satisfies java:isEqualOrSuperset($n/@idref,$p/@name)) and (every $q in xcf:get-component($m)//cpe-lang:fact-ref satisfies some $r in ds:dictionaries/ds:component-ref satisfies some $s in xcf:get-component($r)//cpe-dict:cpe-item satisfies java:isEqualOrSuperset($q/@name,$s/@name)))) else true()

There's one instance of this error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes to reported bugs.
Projects
None yet
Development

No branches or pull requests

1 participant