| 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 | <title>Testing XCCDF</title> |
| 5 | <description>X</description> |
| 6 | <plain-text id="empty"></plain-text> |
| 7 | <version>1.0</version> |
| 8 | <metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> |
| 9 | <dc:title>Testing XCCDF Benchmark</dc:title> |
| 10 | <dc:creator>Šimon Lukašík</dc:creator> |
| 11 | <dc:publisher>Red Hat, Inc.</dc:publisher> |
| 12 | </metadata> |
| 13 | <Profile id="xccdf_moc.elpmaxe.www_profile_1"> |
| 14 | <title>The First Profile</title> |
| 15 | <refine-value idref="xccdf_moc.elpmaxe.www_value_1" selector="profile1"/> |
| 16 | </Profile> |
| 17 | <Profile id="xccdf_moc.elpmaxe.www_profile_2"> |
| 18 | <title>The Second Profile</title> |
| 19 | <refine-value idref="xccdf_moc.elpmaxe.www_value_1" selector="profile2"/> |
| 20 | </Profile> |
| 21 | <Value id="xccdf_moc.elpmaxe.www_value_1"> |
| 22 | <title>Testing value</title> |
| 23 | <description>X</description> |
| 24 | <value>No profile</value> |
| 25 | <value selector="profile1">The First Profile</value> |
| 26 | <value selector="profile2">The Second Profile</value> |
| 27 | </Value> |
| 28 | <Rule selected="true" id="xccdf_moc.elpmaxe.www_rule_1"> |
| 29 | <title>This title is variable: <sub idref="xccdf_moc.elpmaxe.www_value_1"/></title> |
| 30 | <description>This description is substituted according to the selected policy: <sub idref="xccdf_moc.elpmaxe.www_value_1"/></description> |
| 31 | <fix system="urn:xccdf:fix:script:sh"> |
| 32 | <sub idref="empty"/>touch<sub idref="empty"/> test_file |
| 33 | chmod a-x test_file |
| 34 | </fix> |
| 35 | <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 36 | <check-content-ref href="test_default_selector.oval.xml" name="oval:x:def:1"/> |
| 37 | </check> |
| 38 | </Rule> |
| 39 | </Benchmark> |