Debian Codegraph @

tests/DS/sds_tailoring/sds.ds.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <data-stream-collection xmlns="http://scap.nist.gov/schema/scap/source/1.2" xmlns:ds="http://scap.nist.gov/schema/scap/source/1.2" xmlns:cat="urn:oasis:names:tc:entity:xmlns:xml:catalog" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="scap_cdf_collection_fedora.zip" schematron-version="1.2" xsi:schemaLocation="http://scap.nist.gov/schema/scap/source/1.2 http://scap.nist.gov/schema/scap/1.2/scap-source-data-stream_1.2-draft.xsd">
4
5 <!-- Data Stream with XCCDF checklist -->
6 <data-stream id="scap_com.example_datastream_with_checklist" scap-version="1.2" timestamp="2016-09-26T15:00:00" use-case="CONFIGURATION">
7 <checklists>
8 <component-ref id="scap_com.example_cref_xccdf_01" xlink:href="#scap_com.example_comp_xccdf_01">
9 <cat:catalog>
10 <cat:uri name="oval" uri="#scap_com.example_cref_oval_01"/>
11 </cat:catalog>
12 </component-ref>
13 </checklists>
14 <checks>
15 <component-ref id="scap_com.example_cref_oval_01" xlink:href="#scap_com.example_comp_oval_01"/>
16 </checks>
17 </data-stream>
18
19 <!-- Data Stream with tailoring -->
20 <data-stream id="scap_com.example_datastream_with_tailoring" scap-version="1.2" timestamp="2016-05-09T15:00:00" use-case="CONFIGURATION">
21 <checklists>
22 <component-ref id="scap_com.example_cref_tailoring_01" xlink:href="#scap_com.example_comp_tailoring_01"/>
23 <component-ref id="scap_com.example_cref_xccdf_01-source" xlink:href="#scap_com.example_comp_xccdf_01">
24 <cat:catalog>
25 <cat:uri name="oval" uri="#scap_com.example_cref_oval_01-source"/>
26 </cat:catalog>
27 </component-ref>
28 </checklists>
29 <checks>
30 <component-ref id="scap_com.example_cref_oval_01-source" xlink:href="#scap_com.example_comp_oval_01"/>
31 </checks>
32 </data-stream>
33
34 <!-- XCCDF checklist -->
35 <component id="scap_com.example_comp_xccdf_01" timestamp="2016-09-26T14:00:00">
36 <Benchmark xmlns="http://checklists.nist.gov/xccdf/1.2" id="xccdf_moc.elpmaxe.www_benchmark_test">
37 <status>incomplete</status>
38 <version>1.0</version>
39 <model system="urn:xccdf:scoring:default"/>
40 <Rule selected="true" id="xccdf_com.example_rule_1">
41 <title>Rule 1</title>
42 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
43 <check-content-ref href="oval" name="oval:x:def:1"/>
44 </check>
45 </Rule>
46 <Rule selected="false" id="xccdf_com.example_rule_2">
47 <title>Rule 2</title>
48 <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
49 <check-content-ref href="oval" name="oval:x:def:2"/>
50 </check>
51 </Rule>
52 </Benchmark>
53 </component>
54
55 <!-- OVAL definitions -->
56 <component id="scap_com.example_comp_oval_01" timestamp="2016-09-26T14:00:00">
57 <oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:ind="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd">
58 <generator>
59 <oval:schema_version>5.11.1</oval:schema_version>
60 <oval:timestamp>0001-01-01T00:00:00+00:00</oval:timestamp>
61 </generator>
62
63 <definitions>
64 <definition class="compliance" version="1" id="oval:x:def:1">
65 <metadata>
66 <title>First simple OVAL definition</title>
67 <description>x</description>
68 <affected family="unix">
69 <platform>x</platform>
70 </affected>
71 </metadata>
72 <criteria>
73 <criterion test_ref="oval:x:tst:1" comment="always pass"/>
74 </criteria>
75 </definition>
76 <definition class="compliance" version="1" id="oval:x:def:2">
77 <metadata>
78 <title>Second simple OVAL definition</title>
79 <description>x</description>
80 <affected family="unix">
81 <platform>x</platform>
82 </affected>
83 </metadata>
84 <criteria>
85 <criterion test_ref="oval:x:tst:1" comment="always pass"/>
86 </criteria>
87 </definition>
88 </definitions>
89
90 <tests>
91 <ind:textfilecontent54_test id="oval:x:tst:1" version="1" comment="File foo.txt cannnot contain 'Hello'" check="none satisfy">
92 <ind:object object_ref="oval:x:obj:1"/>
93 </ind:textfilecontent54_test>
94 </tests>
95
96 <objects>
97 <ind:textfilecontent54_object id="oval:x:obj:1" version="1" comment="Object representing file">
98 <ind:filepath>/etc/passwd</ind:filepath>
99 <ind:pattern operation="pattern match">^.*$</ind:pattern>
100 <ind:instance datatype="int" operation="greater than or equal">1</ind:instance>
101 </ind:textfilecontent54_object>
102 </objects>
103
104 </oval_definitions>
105 </component>
106
107 <!-- local tailoring component -->
108 <component id="scap_com.example_comp_tailoring_01" timestamp="2016-09-26T14:00:00">
109 <Tailoring xmlns="http://checklists.nist.gov/xccdf/1.2"
110 id="xccdf_com.example_tailoring_01"
111 xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.2 http://scap.nist.gov/schema/xccdf/1.2/xccdf_1.2.xsd
112 http://cpe.mitre.org/dictionary/2.0 http://scap.nist.gov/schema/cpe/2.3/cpe-dictionary_2.3.xsd">
113
114 <benchmark href="#scap_com.example_cref_xccdf_01" id="scap_com.example_benchmark_01" version="1-2.1.1.0"/>
115 <status date="2016-09-26">draft</status>
116 <version time="2016-09-26T14:00:00">1.0</version>
117 <Profile id="xccdf_com.example_profile_tailoring" abstract="false" prohibitChanges="true">
118 <title>Tailoring profile</title>
119 <description>Tailoring profile</description>
120 <select idref="xccdf_com.example_rule_1" selected="false"/>
121 <select idref="xccdf_com.example_rule_2" selected="true"/>
122 </Profile>
123 </Tailoring>
124 </component>
125
126 </data-stream-collection>