| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" id="xccdf_moc.elpmaxe.www_benchmark_test"> |
| 3 | <status>accepted</status> |
| 4 | <plain-text id="touch_definition"> |
| 5 | import os |
| 6 | def touch(fname, times=None): |
| 7 | if not os.path.exists(fname): |
| 8 | open(fname, 'w').close() |
| 9 | </plain-text> |
| 10 | <version>1.0</version> |
| 11 | <Value id="xccdf_moc.elpmaxe.www_value_1"> |
| 12 | <title>File path to the test file</title> |
| 13 | <value>test_file</value> |
| 14 | </Value> |
| 15 | <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_1"> |
| 16 | <title>touch</title> |
| 17 | <fix xmlns:xhtml="http://www.w3.org/1999/xhtml" system="urn:xccdf:fix:script:python3"> |
| 18 | <xhtml:object data="#xccdf:value:touch_definition"/> |
| 19 | <xhtml:object data="#xccdf:title:xccdf_moc.elpmaxe.www_rule_1"/>('<xhtml:object data="#xccdf:value:xccdf_moc.elpmaxe.www_value_1"/>') |
| 20 | </fix> |
| 21 | <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 22 | <check-content-ref href="test_remediation_simple.oval.xml" name="oval:moc.elpmaxe.www:def:1"/> |
| 23 | </check> |
| 24 | </Rule> |
| 25 | <TestResult id="xccdf_org.open-scap_testresult_default-profile" start-time="2013-02-27T14:54:43" end-time="2013-02-27T14:54:44"> |
| 26 | <title>OSCAP Scan Result</title> |
| 27 | <target>x.x.example.com</target> |
| 28 | <target-address>127.0.0.1</target-address> |
| 29 | <target-address>::1</target-address> |
| 30 | <target-facts> |
| 31 | <fact name="urn:xccdf:fact:ethernet:MAC" type="string">00:00:00:00:00:00</fact> |
| 32 | </target-facts> |
| 33 | <rule-result idref="xccdf_moc.elpmaxe.www_rule_1" time="2013-02-27T14:54:44" weight="1.000000"> |
| 34 | <result>fail</result> |
| 35 | <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 36 | <check-content-ref name="oval:moc.elpmaxe.www:def:1" href="test_remediation_simple.oval.xml"/> |
| 37 | </check> |
| 38 | </rule-result> |
| 39 | <score system="urn:xccdf:scoring:default" maximum="100.000000">0.000000</score> |
| 40 | </TestResult> |
| 41 | </Benchmark> |