Debian Codegraph @

tests/API/OVAL/unittests/anyxmloval.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#unix unix-definitions-schema.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
3
4 <generator>
5 <oval:schema_version>5.10</oval:schema_version>
6 <oval:timestamp>2009-01-12T10:41:00-05:00</oval:timestamp>
7 <ai:assets xmlns:ai="http://scap.nist.gov/schema/asset-identification/1.1">
8 <ai:asset id="asset0">
9 <ai:computing-device>
10 <ai:connections>
11 <ai:connection>
12 <ai:ip-address>
13 <ai:ip-v4>127.0.0.1</ai:ip-v4>
14 </ai:ip-address>
15 </ai:connection>
16 <ai:connection>
17 <ai:ip-address>
18 <ai:ip-v4>10.34.28.1</ai:ip-v4>
19 </ai:ip-address>
20 </ai:connection>
21 <ai:connection>
22 <ai:ip-address>
23 <ai:ip-v4>192.168.122.1</ai:ip-v4>
24 </ai:ip-address>
25 </ai:connection>
26 </ai:connections>
27 <ai:fqdn>wrabco</ai:fqdn>
28 </ai:computing-device>
29 </ai:asset>
30 </ai:assets>
31 </generator>
32
33 <definitions>
34 <definition id="oval:org.mitre.oval.test:def:282" version="3" class="miscellaneous">
35 <metadata>
36 <title>Evaluate to true if the empty value in filename entities is supported</title>
37 <description>Evaluate to true if the empty value in filename entities is supported</description>
38 <errata:advisory xmlns:errata="http://redhat.com/schema/cve" from="[email protected]">
39 <errata:severity>Critical</errata:severity>
40 <errata:rights>Copyright 2012 Red Hat, Inc.</errata:rights>
41 <errata:issued date="2012-01-09" />
42 <errata:updated date="2012-01-09" />
43 <errata:cve href="https://www.redhat.com/security/data/cve/CVE-2011-3389.html">CVE-2011-3389</errata:cve>
44 <errata:bugzilla href="http://bugzilla.redhat.com/737506" id="737506">CVE-2011-3389 HTTPS: block-wise chosen-plaintext attack against SSL/TLS (BEAST)</errata:bugzilla>
45 <errata:affected_cpe_list>
46 <errata:cpe>cpe:/a:redhat:rhel_extras</errata:cpe>
47 </errata:affected_cpe_list>
48 </errata:advisory>
49 </metadata>
50 <criteria>
51 <criterion comment="Test that /etc/passwd is collected if filename in object was empty." test_ref="oval:org.mitre.oval.test:tst:1288"/>
52 <criterion comment="Test that all files are from /etc directory." test_ref="oval:org.mitre.oval.test:tst:1289"/>
53 </criteria>
54 </definition>
55 </definitions>
56
57 <tests>
58 <file_test id="oval:org.mitre.oval.test:tst:1288" version="1" comment="Test that /etc/passwd is collected if filename in object was empty." check_existence="at_least_one_exists" check="only one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
59 <object object_ref="oval:org.mitre.oval.test:obj:512"/>
60 <state state_ref="oval:org.mitre.oval.test:ste:1761"/>
61 </file_test>
62 <file_test id="oval:org.mitre.oval.test:tst:1289" version="1" comment="Test that all files are from /etc directory." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
63 <object object_ref="oval:org.mitre.oval.test:obj:512"/>
64 <state state_ref="oval:org.mitre.oval.test:ste:1762"/>
65 </file_test>
66 </tests>
67
68 <objects>
69 <file_object id="oval:org.mitre.oval.test:obj:512" version="1" comment="Files in etc" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
70 <path operation="pattern match">^/etc$</path>
71 <filename operation="pattern match"></filename>
72 </file_object>
73 </objects>
74
75 <states>
76 <file_state id="oval:org.mitre.oval.test:ste:1761" version="1" comment="/etc/passwd" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
77 <path>/etc</path>
78 <filename>passwd</filename>
79 </file_state>
80 <file_state id="oval:org.mitre.oval.test:ste:1762" version="1" comment="any /etc file" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
81 <path>/etc</path>
82 <filename operation="pattern match"></filename>
83 </file_state>
84 </states>
85
86 </oval_definitions>