Debian Codegraph @

tests/API/XCCDF/unittests/test_remediation_subs_value_take_first.xccdf.xml

raw symbols SCIP
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 <version>1.0</version>
5 <Value id="xccdf_moc.elpmaxe.www_value_1" type="number" operator="equals" interactive="0">
6 <title>Without any selector, sub elements shall be resolved to the first one in the top-down search</title>
7 <value selector="my_file">test_file</value>
8 <value selector="nothing">delme.txt</value>
9 <value selector="hi">delme.txt</value>
10 </Value>
11 <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_1">
12 <title>Ensure that file exists and it is not executable</title>
13 <fix system="urn:xccdf:fix:script:sh">
14 touch <sub idref="xccdf_moc.elpmaxe.www_value_1"/>
15 chmod a-x <sub idref="xccdf_moc.elpmaxe.www_value_1"/>
16 </fix>
17 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
18 <check-content-ref href="test_remediation_simple.oval.xml" name="oval:moc.elpmaxe.www:def:1"/>
19 </check>
20 </Rule>
21 </Benchmark>