| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <Benchmark xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://checklists.nist.gov/xccdf/1.1" id="RHEL-6" xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.1 xccdf-1.1.4.xsd" resolved="false" xml:lang="en-US"> |
| 3 | <status>draft</status> |
| 4 | <version>0.1</version> |
| 5 | <Rule id="test_fix_element" selected="true"> |
| 6 | <fix system="urn:xccdf:fix:script:sh"> |
| 7 | echo Hello > test_file #<instance/> |
| 8 | </fix> |
| 9 | <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10 | <check-content-ref href="test_fix_instance.oval.xml" name="oval:x:def:1"/> |
| 11 | </check> |
| 12 | </Rule> |
| 13 | <TestResult id="xccdf_org.open-scap_testresult_default-profile" start-time="2015-03-02T14:26:09" end-time="2015-03-02T14:26:09" version="0.1"> |
| 14 | <benchmark href="test_fix.xccdf.xml"/> |
| 15 | <title>OSCAP Scan Result</title> |
| 16 | <identity authenticated="false" privileged="false">user</identity> |
| 17 | <target>some_machine</target> |
| 18 | <target-address>127.0.0.1</target-address> |
| 19 | <target-facts> |
| 20 | <fact name="urn:xccdf:fact:scanner:name" type="string">OpenSCAP</fact> |
| 21 | <fact name="urn:xccdf:fact:scanner:version" type="string">1.1.2</fact> |
| 22 | <fact name="urn:xccdf:fact:ethernet:MAC" type="string">00:00:00:00:00:00</fact> |
| 23 | </target-facts> |
| 24 | <rule-result idref="test_fix_element" time="2015-03-02T14:26:09" weight="1.000000"> |
| 25 | <result>fail</result> |
| 26 | <instance>a</instance> |
| 27 | <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 28 | <check-content-ref name="oval:x:def:1" href="test_fix_instance.oval.xml"/> |
| 29 | </check> |
| 30 | </rule-result> |
| 31 | <rule-result idref="test_fix_element" time="2015-03-02T14:26:09" weight="1.000000"> |
| 32 | <result>fail</result> |
| 33 | <instance>b</instance> |
| 34 | <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 35 | <check-content-ref name="oval:x:def:1" href="test_fix_instance.oval.xml"/> |
| 36 | </check> |
| 37 | </rule-result> |
| 38 | <score system="urn:xccdf:scoring:default" maximum="100.000000">0.000000</score> |
| 39 | </TestResult> |
| 40 | |
| 41 | </Benchmark> |
| 42 |