| 1 |
<?xml version="1.0"?> |
| 2 |
<Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" id="xccdf_com.example.www_benchmark_dummy" xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.1 xccdf-1.1.4.xsd" resolved="false" xml:lang="en-US"> |
| 3 |
<status>accepted</status> |
| 4 |
<version>1.0</version> |
| 5 |
|
| 6 |
<Profile id="xccdf_com.example.www_profile_test_single_rule"> |
| 7 |
<title>xccdf_test_profile</title> |
| 8 |
<description>This profile is for testing.</description> |
| 9 |
<select idref="xccdf_com.example.www_rule_test-pass" selected="true"/> |
| 10 |
<select idref="xccdf_com.example.www_rule_test-fail" selected="true"/> |
| 11 |
|
| 12 |
<refine-value idref="xccdf_com.example.www_value_val1" selector="bar_2"/> |
| 13 |
</Profile> |
| 14 |
<Profile id="xccdf_com.example.www_profile_test_single_rule_2"> |
| 15 |
<title>xccdf_test_profile 2</title> |
| 16 |
<description>This profile is for testing.</description> |
| 17 |
<select idref="xccdf_com.example.www_rule_test-pass" selected="false"/> |
| 18 |
<select idref="xccdf_com.example.www_rule_test-fail" selected="true"/> |
| 19 |
</Profile> |
| 20 |
|
| 21 |
<Value id="xccdf_com.example.www_value_val1" type="number" operator="equals" interactive="0"> |
| 22 |
<title>test value</title> |
| 23 |
<description>foo</description> |
| 24 |
<value selector="bar_1">50</value> |
| 25 |
<value selector="bar_2">100</value> |
| 26 |
</Value> |
| 27 |
<Rule selected="true" id="xccdf_com.example.www_rule_test-pass"> |
| 28 |
<title>This rule always pass</title> |
| 29 |
<reference>Clever book, page 18, section 3</reference> |
| 30 |
<reference> |
| 31 |
<dc:title>Test reference without href attribute</dc:title> |
| 32 |
<dc:publisher>OpenSCAP Project</dc:publisher> |
| 33 |
<dc:type>Dummy reference</dc:type> |
| 34 |
<dc:subject>Random subject</dc:subject> |
| 35 |
<dc:identifier>12345</dc:identifier> |
| 36 |
</reference> |
| 37 |
<reference href="http://iase.disa.mil/stigs/os/unix-linux/Pages/index.aspx">RHEL-07-040800</reference> |
| 38 |
<reference href="http://iase.disa.mil/stigs/Pages/stig-viewing-guidance.aspx">SV-86937r1_rule</reference> |
| 39 |
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 40 |
<check-content-ref href="test_single_rule.oval.xml" name="oval:test-pass:def:1"/> |
| 41 |
</check> |
| 42 |
</Rule> |
| 43 |
<Rule selected="true" id="xccdf_com.example.www_rule_test-fail"> |
| 44 |
<title>This rule fails if profile test_single_rule is not selected</title> |
| 45 |
<reference href="http://iase.disa.mil/stigs/os/unix-linux/Pages/index.aspx">RHEL-07-020050</reference> |
| 46 |
<reference href="http://iase.disa.mil/stigs/Pages/stig-viewing-guidance.aspx">SV-86601r1_rule</reference> |
| 47 |
<check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 48 |
<check-export export-name="oval:ssg:var:1" value-id="xccdf_com.example.www_value_val1"/> |
| 49 |
<check-content-ref href="test_single_rule.oval.xml" name="oval:test-fail:def:2"/> |
| 50 |
</check> |
| 51 |
</Rule> |
| 52 |
</Benchmark> |