Debian Codegraph @

tests/mitre/linux-def_rpmverify_test.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <oval_definitions xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:linux-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5">
3 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2011-04-01T18:07:26-04:00</oval:timestamp>
6 <terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the license described in terms.txt.</terms_of_use>
7 </generator>
8 <definitions>
9 <definition id="oval:org.mitre.oval.test:def:449" version="2" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the linux-def:family_test is properly supported</title>
12 <description>This definition is intended to evalutate to true if the interpreter properly supports the linux-def:rpmverify_test and all of its valid operations.</description>
13 </metadata>
14 <notes>
15 <note>It is important to note that the values used in this test definition are specific to a particular machine, and may not necessarily apply to your system. As a result, in order to have the definition return a result of 'true', you must either change these values to the ones found on your particular system, or you must configure your system to use these values.</note>
16 </notes>
17 <criteria operator="AND">
18 <criterion comment="Test verifying all files in a package." test_ref="oval:org.mitre.oval.test:tst:1531"/>
19 <criterion comment="Test skipping a verification using a behavior." test_ref="oval:org.mitre.oval.test:tst:1370"/>
20 <criterion comment="Test looking up a package by filepath." test_ref="oval:org.mitre.oval.test:tst:2059"/>
21 <criterion comment="Test doing pattern match on name and filepath." test_ref="oval:org.mitre.oval.test:tst:1952"/>
22 <criterion comment="Test that the noghostfiles behavior filters out ghost files." test_ref="oval:org.mitre.oval.test:tst:1626"/>
23 <criterion comment="Test that the noconfigfiles behavior filters out config files." test_ref="oval:org.mitre.oval.test:tst:1942"/>
24 </criteria>
25 </definition>
26 </definitions>
27 <tests>
28 <rpmverify_test id="oval:org.mitre.oval.test:tst:1531" version="1" comment="Test verifying all files in a package." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
29 <object object_ref="oval:org.mitre.oval.test:obj:1453"/>
30 <state state_ref="oval:org.mitre.oval.test:ste:1608"/>
31 </rpmverify_test>
32 <rpmverify_test id="oval:org.mitre.oval.test:tst:1370" version="1" comment="Test skipping a verification using a behavior." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
33 <object object_ref="oval:org.mitre.oval.test:obj:1484"/>
34 <state state_ref="oval:org.mitre.oval.test:ste:1364"/>
35 </rpmverify_test>
36 <rpmverify_test id="oval:org.mitre.oval.test:tst:2059" version="2" comment="Test looking up a package by filepath." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
37 <object object_ref="oval:org.mitre.oval.test:obj:1386"/>
38 <state state_ref="oval:org.mitre.oval.test:ste:1362"/>
39 </rpmverify_test>
40 <rpmverify_test id="oval:org.mitre.oval.test:tst:1952" version="1" comment="Test doing pattern match on name and filepath." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
41 <object object_ref="oval:org.mitre.oval.test:obj:1394"/>
42 <state state_ref="oval:org.mitre.oval.test:ste:719"/>
43 </rpmverify_test>
44 <rpmverify_test id="oval:org.mitre.oval.test:tst:1626" version="1" comment="Test that the noghostfiles behavior filters out ghost files." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
45 <object object_ref="oval:org.mitre.oval.test:obj:1492"/>
46 <state state_ref="oval:org.mitre.oval.test:ste:1096"/>
47 </rpmverify_test>
48 <rpmverify_test id="oval:org.mitre.oval.test:tst:1942" version="1" comment="Test that the noconfigfiles behavior filters out config files." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
49 <object object_ref="oval:org.mitre.oval.test:obj:1292"/>
50 <state state_ref="oval:org.mitre.oval.test:ste:1597"/>
51 </rpmverify_test>
52 </tests>
53 <objects>
54 <rpmverify_object id="oval:org.mitre.oval.test:obj:1453" version="1" comment="Verify all files in the pam package." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
55 <behaviors nodeps="true" nofiles="false" nodigest="true" noscripts="true" nosignature="true"/>
56 <name>pam</name>
57 <filepath operation="pattern match"/>
58 </rpmverify_object>
59 <rpmverify_object id="oval:org.mitre.oval.test:obj:1484" version="1" comment="Verify files in the bash package, but skip md5" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
60 <behaviors nodeps="true" nofiles="false" nodigest="true" noscripts="true" nosignature="true" nomd5="true"/>
61 <name>bash</name>
62 <filepath operation="pattern match"/>
63 </rpmverify_object>
64 <rpmverify_object id="oval:org.mitre.oval.test:obj:1386" version="2" comment="Try looking up a package by filepath." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
65 <behaviors nodeps="true" nofiles="false" nodigest="true" noscripts="true" nosignature="true"/>
66 <name operation="pattern match"/>
67 <filepath var_ref="oval:org.mitre.oval.test:var:805" var_check="at least one"/>
68 </rpmverify_object>
69 <rpmverify_object id="oval:org.mitre.oval.test:obj:1394" version="1" comment="Verify all package-owned files under /etc/X11." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
70 <behaviors nodeps="true" nofiles="false" nodigest="true" noscripts="true" nosignature="true"/>
71 <name operation="pattern match"/>
72 <filepath operation="pattern match">^/etc/X11</filepath>
73 </rpmverify_object>
74 <rpmverify_object id="oval:org.mitre.oval.test:obj:1492" version="1" comment="Verify non-ghost files in the pam package." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
75 <behaviors nodeps="true" nofiles="false" nodigest="true" noscripts="true" nosignature="true" noghostfiles="true"/>
76 <name>pam</name>
77 <filepath operation="pattern match"/>
78 </rpmverify_object>
79 <rpmverify_object id="oval:org.mitre.oval.test:obj:1292" version="1" comment="Verify non-config files in the pam package." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
80 <behaviors nodeps="true" nofiles="false" nodigest="true" noscripts="true" nosignature="true" noconfigfiles="true"/>
81 <name>pam</name>
82 <filepath operation="pattern match"/>
83 </rpmverify_object>
84 </objects>
85 <states>
86 <rpmverify_state id="oval:org.mitre.oval.test:ste:1608" version="1" comment="accepts files from the pam package" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
87 <name>pam</name>
88 </rpmverify_state>
89 <rpmverify_state id="oval:org.mitre.oval.test:ste:1364" version="1" comment="accepts any files from the bash package where the md5 verification hasn't been performed" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
90 <name>bash</name>
91 <md5_differs>not performed</md5_differs>
92 </rpmverify_state>
93 <rpmverify_state id="oval:org.mitre.oval.test:ste:1362" version="1" comment="accepts /bin/ls" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
94 <name operation="pattern match"/>
95 <filepath var_ref="oval:org.mitre.oval.test:var:805" var_check="at least one"/>
96 </rpmverify_state>
97 <rpmverify_state id="oval:org.mitre.oval.test:ste:719" version="1" comment="accepts any file under /etc/X11 owned by any package" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
98 <name operation="pattern match"/>
99 <filepath operation="pattern match">^/etc/X11</filepath>
100 </rpmverify_state>
101 <rpmverify_state id="oval:org.mitre.oval.test:ste:1096" version="1" comment="accepts any non-ghost files from the pam package" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
102 <name>pam</name>
103 <filepath operation="pattern match"/>
104 <ghost_file datatype="boolean">false</ghost_file>
105 </rpmverify_state>
106 <rpmverify_state id="oval:org.mitre.oval.test:ste:1597" version="1" comment="accepts any non-config files from the pam package" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
107 <name>pam</name>
108 <filepath operation="pattern match"/>
109 <configuration_file datatype="boolean">false</configuration_file>
110 </rpmverify_state>
111 </states>
112 <variables>
113 <constant_variable id="oval:org.mitre.oval.test:var:805" version="1" comment="This variable contains both paths /bin/ls and /usr/bin/ls to support multiple versions of linux (e.g. pre-Fedora 17 and Fedora 17+)" datatype="string">
114 <value>/bin/ls</value>
115 <value>/usr/bin/ls</value>
116 </constant_variable>
117 </variables>
118 </oval_definitions>