Debian Codegraph @

tests/mitre/ind-def_environmentvariable58_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#independent independent-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">
3 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2012-09-06T18:27:00-05: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:353" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the ind-def:environmentvariable58_test is properly supported</title>
12 <description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:environmentvariable58_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 that the current process can be queried using a nil pid" test_ref="oval:org.mitre.oval.test:tst:1513"/>
19 <criterion comment="Test querying a process" test_ref="oval:org.mitre.oval.test:tst:1616"/>
20 <criterion comment="A slightly more complex query which scans all processes and uses a regex on the variable name" test_ref="oval:org.mitre.oval.test:tst:1337"/>
21 </criteria>
22 </definition>
23 </definitions>
24 <tests>
25 <environmentvariable58_test id="oval:org.mitre.oval.test:tst:1513" version="1" comment="Test that the current process can be queried using a nil pid" check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
26 <object object_ref="oval:org.mitre.oval.test:obj:1461"/>
27 <state state_ref="oval:org.mitre.oval.test:ste:1062"/>
28 </environmentvariable58_test>
29 <environmentvariable58_test id="oval:org.mitre.oval.test:tst:1616" version="1" comment="Test querying a process" check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
30 <object object_ref="oval:org.mitre.oval.test:obj:1257"/>
31 <state state_ref="oval:org.mitre.oval.test:ste:1171"/>
32 </environmentvariable58_test>
33 <environmentvariable58_test id="oval:org.mitre.oval.test:tst:1337" version="1" comment="A slightly more complex query which scans all processes and uses a regex on the variable name" check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
34 <object object_ref="oval:org.mitre.oval.test:obj:1030"/>
35 <state state_ref="oval:org.mitre.oval.test:ste:853"/>
36 </environmentvariable58_test>
37 </tests>
38 <objects>
39 <environmentvariable58_object id="oval:org.mitre.oval.test:obj:1461" version="1" comment="Get the home directory of the current process' user" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
40 <pid datatype="int" xsi:nil="true"/>
41 <name>HOME</name>
42 </environmentvariable58_object>
43 <environmentvariable58_object id="oval:org.mitre.oval.test:obj:1257" version="1" comment="Get non-PATH env vars of a particular pid" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
44 <oval-def:notes>
45 <oval-def:note>There's no fixed pid to use here... you'll have to pick your own pid of a 32-bit process.</oval-def:note>
46 </oval-def:notes>
47 <pid datatype="int" operation="equals">5716</pid>
48 <name operation="case insensitive not equal">PATH</name>
49 </environmentvariable58_object>
50 <environmentvariable58_object id="oval:org.mitre.oval.test:obj:1030" version="1" comment="Get env vars of all processes which start with S" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
51 <pid datatype="int" operation="greater than">0</pid>
52 <name operation="pattern match">^S</name>
53 </environmentvariable58_object>
54 </objects>
55 <states>
56 <environmentvariable58_state id="oval:org.mitre.oval.test:ste:1062" version="1" comment="name must be HOMEPATH" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
57 <name>HOME</name>
58 </environmentvariable58_state>
59 <environmentvariable58_state id="oval:org.mitre.oval.test:ste:1171" version="1" comment="name must not be PATH" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
60 <name operation="case insensitive not equal">PATH</name>
61 </environmentvariable58_state>
62 <environmentvariable58_state id="oval:org.mitre.oval.test:ste:853" version="1" comment="name must start with S" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
63 <name operation="pattern match">^S</name>
64 </environmentvariable58_state>
65 </states>
66 </oval_definitions>