Debian Codegraph @

tests/nist/R1100/r1100-scap10-rhel-cpe-oval.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5"
5 xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#windows http://oval.mitre.org/language/download/schema/version5.3/ovaldefinition/complete/windows-definitions-schema.xsd
6 http://oval.mitre.org/XMLSchema/oval-definitions-5#independent http://oval.mitre.org/language/download/schema/version5.3/ovaldefinition/complete/independent-definitions-schema.xsd
7 http://oval.mitre.org/XMLSchema/oval-definitions-5 http://oval.mitre.org/language/download/schema/version5.3/ovaldefinition/complete/oval-definitions-schema.xsd
8 http://oval.mitre.org/XMLSchema/oval-common-5 http://oval.mitre.org/language/download/schema/version5.3/ovaldefinition/complete/oval-common-schema.xsd
9 http://oval.mitre.org/XMLSchema/oval-definitions-5#linux http://oval.mitre.org/language/download/schema/version5.3/ovaldefinition/complete/linux-definitions-schema.xsd
10 http://oval.mitre.org/XMLSchema/oval-definitions-5#unix http://oval.mitre.org/language/download/schema/version5.3/ovaldefinition/complete/unix-definitions-schema.xsd" >
11 <generator>
12 <oval:product_name>National Institute of Standards and Technology</oval:product_name>
13 <oval:schema_version>5.3</oval:schema_version>
14 <oval:timestamp>2012-06-28T09:49:40.000-05:00</oval:timestamp>
15 </generator>
16 <definitions>
17 <!--====================================================================================================-->
18 <!--===================================== EXTENDED DEFINITIONS =========================================-->
19 <!--====================================================================================================-->
20 <definition class="inventory" id="oval:gov.nist.validation.cpe.oval:def:100" version="2">
21 <metadata>
22 <title>Red Hat Enterprise Linux 3, 4, 5, 6, or 7</title>
23 <affected family="unix">
24 <platform>Red Hat Enterprise Linux</platform>
25 </affected>
26 <reference ref_id="cpe:/o:redhat:enterprise_linux" source="CPE"/>
27 <description>The operating system installed on the system is Red Hat Enterprise Linux 3, 4, 5, 6, or 7</description>
28 </metadata>
29 <criteria>
30 <criterion comment="Installed operating system is part of the unix family" test_ref="oval:gov.nist.validation.cpe.oval:tst:100"/>
31 <criterion comment="Red Hat Enterprise Linux 3, 4, 5, 6, or 7 is installed" test_ref="oval:gov.nist.validation.cpe.oval:tst:101"/>
32 </criteria>
33 </definition>
34 <definition class="inventory" id="oval:gov.nist.validation.cpe.oval:def:1" version="4">
35 <metadata>
36 <title>Microsoft Windows is installed</title>
37 <affected family="windows">
38 <platform>Microsoft Windows XP</platform>
39 <platform>Microsoft Windows Vista</platform>
40 <platform>Microsoft Windows 7</platform>
41 <platform>Microsoft Windows 8</platform>
42 <platform>Microsoft Windows 8.1</platform>
43 <platform>Microsoft Windows 10</platform>
44 <platform>Microsoft Windows Server 2012</platform>
45 <platform>Microsoft Windows Server 2012 R2</platform>
46 </affected>
47 <reference ref_id="cpe:/o:microsoft:windows" source="CPE"/>
48 <description>The operating system installed on the system is Microsoft Windows</description>
49 </metadata>
50 <criteria>
51 <criterion comment="the installed operating system is part of the Microsoft Windows family" test_ref="oval:org.mitre.oval:tst:99"/>
52 </criteria>
53 </definition>
54 </definitions>
55 <!-- ==================================================================================================== -->
56 <!-- ============================================ TESTS =============================================== -->
57 <!-- ==================================================================================================== -->
58 <tests>
59 <family_test check_existence="at_least_one_exists" id="oval:gov.nist.validation.cpe.oval:tst:100" version="1" check="only one" comment="installed operating system is part of the Unix family" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
60 <object object_ref="oval:gov.nist.validation.cpe.oval:obj:100"/>
61 <state state_ref="oval:gov.nist.validation.cpe.oval:ste:100"/>
62 </family_test>
63 <rpminfo_test check_existence="at_least_one_exists" id="oval:gov.nist.validation.cpe.oval:tst:101" version="2" check="at least one" comment="redhat-release is version 3, 4, 5, 6, or 7" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
64 <object object_ref="oval:gov.nist.validation.cpe.oval:obj:101"/>
65 <state state_ref="oval:gov.nist.validation.cpe.oval:ste:101"/>
66 </rpminfo_test>
67 <family_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" check="only one" check_existence="at_least_one_exists" comment="the installed operating system is part of the Microsoft Windows family" id="oval:org.mitre.oval:tst:99" version="1">
68 <object object_ref="oval:org.mitre.oval:obj:99"/>
69 <state state_ref="oval:org.mitre.oval:ste:99"/>
70 </family_test>
71 </tests>
72 <!-- ==================================================================================================== -->
73 <!-- ============================================ OBJECTS ============================================= -->
74 <!-- ==================================================================================================== -->
75 <objects>
76 <family_object id="oval:gov.nist.validation.cpe.oval:obj:100" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"/>
77 <family_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" comment="This is the default family object. Only one family object should exist." id="oval:org.mitre.oval:obj:99" version="1"/>
78 <rpminfo_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" comment="the redhat-release rpm" id="oval:gov.nist.validation.cpe.oval:obj:101" version="2">
79 <name operation="pattern match">^redhat-release.*$</name>
80 </rpminfo_object>
81 </objects>
82 <!-- ==================================================================================================== -->
83 <!-- ============================================= STATES ============================================= -->
84 <!-- ==================================================================================================== -->
85 <states>
86 <family_state id="oval:gov.nist.validation.cpe.oval:ste:100" version="1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
87 <family>unix</family>
88 </family_state>
89 <rpminfo_state id="oval:gov.nist.validation.cpe.oval:ste:101" version="2" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
90 <version operation="pattern match">^[3-7]\D</version>
91 </rpminfo_state>
92 <family_state xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" comment="Microsoft Windows family" id="oval:org.mitre.oval:ste:99" version="2">
93 <family operation="equals">windows</family>
94 </family_state>
95 </states>
96 <!-- ==================================================================================================== -->
97 <!-- ==================================================================================================== -->
98 <!-- ==================================================================================================== -->
99 </oval_definitions>