Debian Codegraph @

tests/API/OVAL/unittests/applicability_check.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" 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">
3 <generator>
4 <oval:product_name>VIM</oval:product_name>
5 <oval:product_version>1.0</oval:product_version>
6 <oval:schema_version>5.10</oval:schema_version>
7 <oval:timestamp>2012-03-31T00:00:00-00:00</oval:timestamp>
8 </generator>
9
10 <definitions>
11 <definition class="inventory" version="1" id="oval:gov.irs.rhel5:def:10000">
12 <metadata>
13 <title>Red Hat Enterprise Linux 5</title>
14 <affected family="unix">
15 <platform>Red Hat Enterprise Linux 5</platform>
16 </affected>
17 <reference ref_id="cpe:/o:redhat:enterprise_linux:5" source="CPE"/>
18 <description>The operating system installed on the system is Red Hat Enterprise Linux 5</description>
19 </metadata>
20 <criteria>
21 <criterion test_ref="oval:gov.irs.rhel5:tst:10000" comment="Red Hat Enterprise Linux 5 is installed"/>
22 <criterion test_ref="oval:gov.irs.rhel5:tst:10001" comment="Installed operating system is part of the unix family"/>
23 </criteria>
24 </definition>
25
26 <definition class="compliance" version="1" id="oval:gov.irs.rhel5:def:1">
27 <metadata>
28 <title>Service rhnsd should be disabled</title>
29 <affected family="unix">
30 <platform>Red Hat Enterprise Linux 5</platform>
31 </affected>
32 <reference ref_id="CCE-3416-5" source="CCE"/>
33 <description>Service rhnsd should be disabled</description>
34 </metadata>
35 <criteria applicability_check="true">
36 <criterion test_ref="oval:gov.irs.rhel5:tst:4" applicability_check="true" comment="The rhnsd service should not be started at runlevel 5"/>
37 <extend_definition definition_ref="oval:gov.irs.rhel5:def:10000" applicability_check="true" comment="Red Hat Enterprise Linux 5 is installed"/>
38 </criteria>
39 </definition>
40
41 </definitions>
42
43 <tests>
44 <rpminfo_test check_existence="at_least_one_exists" comment="redhat-release is version 5" version="1" id="oval:gov.irs.rhel5:tst:10000" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
45 <object object_ref="oval:gov.irs.rhel5:obj:10000"/>
46 <state state_ref="oval:gov.irs.rhel5:ste:10000"/>
47 </rpminfo_test>
48 <family_test check_existence="at_least_one_exists" comment="installed operating system is part of the Unix family" version="1" id="oval:gov.irs.rhel5:tst:10001" check="only one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
49 <object object_ref="oval:gov.irs.rhel5:obj:10001"/>
50 <state state_ref="oval:gov.irs.rhel5:ste:10001"/>
51 </family_test>
52 <runlevel_test check_existence="any_exist" comment="The rhnsd service should not be started at runlevel 5" version="1" id="oval:gov.irs.rhel5:tst:4" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
53 <object object_ref="oval:gov.irs.rhel5:obj:4"/>
54 <state state_ref="oval:gov.irs.rhel5:ste:1"/>
55 </runlevel_test>
56 </tests>
57
58 <objects>
59 <rpminfo_object version="1" id="oval:gov.irs.rhel5:obj:10000" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
60 <name>redhat-release</name>
61 </rpminfo_object>
62 <family_object version="1" id="oval:gov.irs.rhel5:obj:10001" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"/>
63 <runlevel_object version="1" id="oval:gov.irs.rhel5:obj:1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
64 <service_name>rhnsd</service_name>
65 <runlevel>2</runlevel>
66 </runlevel_object>
67 <runlevel_object version="1" id="oval:gov.irs.rhel5:obj:4" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
68 <service_name>rhnsd</service_name>
69 <runlevel>5</runlevel>
70 </runlevel_object>
71 </objects>
72
73 <states>
74 <rpminfo_state version="1" id="oval:gov.irs.rhel5:ste:10000" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
75 <version operation="pattern match">^5[^[:digit:]]</version>
76 </rpminfo_state>
77 <family_state version="1" id="oval:gov.irs.rhel5:ste:10001" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
78 <family>unix</family>
79 </family_state>
80 <runlevel_state version="1" id="oval:gov.irs.rhel5:ste:1" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
81 <start datatype="boolean">false</start>
82 </runlevel_state>
83 </states>
84 </oval_definitions>