Debian Codegraph @

tests/API/XCCDF/applicability/test_remediate_fix_processing.xccdf.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="xccdf_moc.elpmaxe.www_benchmark_test" resolved="1">
3 <status>accepted</status>
4 <version>1.0</version>
5 <model system="urn:xccdf:scoring:default"/>
6 <Rule id="xccdf_moc.elpmaxe.www_rule_1" selected="true">
7 <title>Ensure that file exists and it is not executable</title>
8 <fix system="urn:xccdf:fix:unknown">
9 <!-- This fix has unsupported platform thus it shall not be executed -->
10 touch wrong_test_file
11 </fix>
12 <fix system="urn:xccdf:fix:script:sh" platform="cpe:/o:example:not-applicable:5">
13 <!-- This fix is not applicable and thus it shall not be executed -->
14 touch wrong_test_file
15 </fix>
16 <fix system="urn:xccdf:fix:script:sh" platform="cpe:/o:example:applicable:5">
17 <!-- This could be executed, but the least disruptive one shall be preferred -->
18 touch test_file
19 </fix>
20 <fix system="urn:xccdf:fix:script:sh" reboot="true">
21 <!-- This could be executed when CPE are not available. It is the only one which matches.
22 On the other hand when CPE is available, this one shall be omitted as it requires reboot. -->
23 touch test_file_cpe_na
24 </fix>
25 <fix system="urn:xccdf:fix:script:sh" platform="cpe:/o:example:applicable:5" disruption="low">
26 <!-- This should be executed, this is the least disruptive onw -->
27 touch test_file
28 </fix>
29 <fix system="urn:xccdf:fix:script:sh" platform="cpe:/o:example:unknown:42">
30 <!-- This could be executed -->
31 touch wrong_test_file
32 </fix>
33 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
34 <check-content-ref name="oval:moc.elpmaxe.www:def:1" href="../unittests/test_remediation_simple.oval.xml"/>
35 </check>
36 </Rule>
37 <TestResult id="xccdf_org.open-scap_testresult_default-profile" start-time="2013-02-27T14:54:43" end-time="2013-02-27T14:54:44">
38 <title>OSCAP Scan Result</title>
39 <target>x.x.example.com</target>
40 <target-address>127.0.0.1</target-address>
41 <target-address>0:0:0:0:0:0:0:1</target-address>
42 <target-facts>
43 <fact name="urn:xccdf:fact:ethernet:MAC" type="string">00:00:00:00:00:00</fact>
44 </target-facts>
45 <rule-result idref="xccdf_moc.elpmaxe.www_rule_1" time="2013-02-27T14:54:44" weight="1.000000">
46 <result>fail</result>
47 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
48 <check-content-ref name="oval:moc.elpmaxe.www:def:1" href="../unittests/test_remediation_simple.oval.xml"/>
49 </check>
50 </rule-result>
51 <score system="urn:xccdf:scoring:default" maximum="100.000000">0.000000</score>
52 </TestResult>
53 </Benchmark>