Debian Codegraph @

tests/mitre/unix-def_shadow_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 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:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" 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 <generator>
4 <oval:schema_version>5.10.1</oval:schema_version>
5 <oval:timestamp>2009-08-07T17:25:07-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:334" version="2" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if unix-def:shadow_test is properly supported</title>
12 <description>This definition is intended to evaluate to true if the interpreter properly supports unix-def:shadow_test.</description>
13 </metadata>
14 <notes>
15 <note>The OVAL Interpreter will probably need to be run as root to successfully evaluate this definition.</note>
16 <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>
17 </notes>
18 <criteria operator="AND">
19 <criterion comment="This test checks if spwd::sp_min for user 'root' is 0." test_ref="oval:org.mitre.oval.test:tst:763"/>
20 <criterion comment="This test checks if there is a non-root account with spwd::sp_warn = 7." test_ref="oval:org.mitre.oval.test:tst:922"/>
21 <criterion comment="This test checks if there is an account which does not start with 'r' with spwd::sp_warn = 7." test_ref="oval:org.mitre.oval.test:tst:241"/>
22 </criteria>
23 </definition>
24 </definitions>
25 <tests>
26 <shadow_test id="oval:org.mitre.oval.test:tst:763" version="2" comment="This test checks if spwd::sp_min for user 'root' is 0." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
27 <object object_ref="oval:org.mitre.oval.test:obj:66"/>
28 <state state_ref="oval:org.mitre.oval.test:ste:851"/>
29 </shadow_test>
30 <shadow_test id="oval:org.mitre.oval.test:tst:922" version="2" comment="This test checks if there is a non-root account with spwd::sp_warn = 7." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
31 <object object_ref="oval:org.mitre.oval.test:obj:9"/>
32 <state state_ref="oval:org.mitre.oval.test:ste:105"/>
33 </shadow_test>
34 <shadow_test id="oval:org.mitre.oval.test:tst:241" version="2" comment="This test checks if there is an account which does not start with 'r' with spwd::sp_warn = 7." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
35 <object object_ref="oval:org.mitre.oval.test:obj:36"/>
36 <state state_ref="oval:org.mitre.oval.test:ste:105"/>
37 </shadow_test>
38 </tests>
39 <objects>
40 <shadow_object id="oval:org.mitre.oval.test:obj:66" version="1" comment="The root account." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
41 <username>root</username>
42 </shadow_object>
43 <shadow_object id="oval:org.mitre.oval.test:obj:9" version="1" comment="The non-root accounts." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
44 <username operation="not equal">root</username>
45 </shadow_object>
46 <shadow_object id="oval:org.mitre.oval.test:obj:36" version="1" comment="The accounts which do not start with r." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
47 <username operation="pattern match">^[^r]</username>
48 </shadow_object>
49 </objects>
50 <states>
51 <shadow_state id="oval:org.mitre.oval.test:ste:851" version="2" comment="The state of spwd::sp_min equaling 0." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
52 <chg_allow datatype="int">0</chg_allow>
53 </shadow_state>
54 <shadow_state id="oval:org.mitre.oval.test:ste:105" version="2" comment="The state of spwd::sp_warn equaling 7." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
55 <exp_warn datatype="int">7</exp_warn>
56 </shadow_state>
57 </states>
58 </oval_definitions>