Debian Codegraph @

tests/mitre/unix-def_password_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:904" version="1" class="miscellaneous">
10 <metadata>
11 <title>Evaluate to true if the unix-def:password_test is properly supported</title>
12 <description>This definition is intended to evaluate to true if the interpreter properly supports unix-def:password_test.</description>
13 <ovalnotes>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.</ovalnotes>
14 </metadata>
15 <notes>
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="Test that the password_object is supported with the username entity equal to some value." test_ref="oval:org.mitre.oval.test:tst:167"/>
20 <criterion comment="Test that the password_object is supported with the username entity not equal to some value." test_ref="oval:org.mitre.oval.test:tst:698"/>
21 <criterion comment="Test that the password_object is supported with the username entity matching some regular expression." test_ref="oval:org.mitre.oval.test:tst:673"/>
22 <criterion comment="Test that the password_object is supported with the username entity equal to some value using the var_ref attribute." test_ref="oval:org.mitre.oval.test:tst:403"/>
23 <criterion comment="Test that the password_object is supported with the username entity not equal to some value using the var_ref attribute." test_ref="oval:org.mitre.oval.test:tst:266"/>
24 <criterion comment="Test that the password_object is supported with the username entity matching some regular expression using the var_ref attribute." test_ref="oval:org.mitre.oval.test:tst:362"/>
25 </criteria>
26 </definition>
27 </definitions>
28 <tests>
29 <password_test id="oval:org.mitre.oval.test:tst:167" version="1" comment="Test that the password_object is supported with the username entity equal to some value." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
30 <object object_ref="oval:org.mitre.oval.test:obj:943"/>
31 <state state_ref="oval:org.mitre.oval.test:ste:43"/>
32 </password_test>
33 <password_test id="oval:org.mitre.oval.test:tst:698" version="1" comment="Test that the password_object is supported with the username entity not equal to some value." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
34 <object object_ref="oval:org.mitre.oval.test:obj:432"/>
35 <state state_ref="oval:org.mitre.oval.test:ste:548"/>
36 </password_test>
37 <password_test id="oval:org.mitre.oval.test:tst:673" version="1" comment="Test that the password_object is supported with the username entity matching some regular expression." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
38 <object object_ref="oval:org.mitre.oval.test:obj:625"/>
39 <state state_ref="oval:org.mitre.oval.test:ste:548"/>
40 </password_test>
41 <password_test id="oval:org.mitre.oval.test:tst:403" version="1" comment="Test that the password_object is supported with the username entity equal to some value using the var_ref attribute." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
42 <object object_ref="oval:org.mitre.oval.test:obj:662"/>
43 <state state_ref="oval:org.mitre.oval.test:ste:43"/>
44 </password_test>
45 <password_test id="oval:org.mitre.oval.test:tst:266" version="1" comment="Test that the password_object is supported with the username entity not equal to some value using the var_ref attribute." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
46 <object object_ref="oval:org.mitre.oval.test:obj:282"/>
47 <state state_ref="oval:org.mitre.oval.test:ste:548"/>
48 </password_test>
49 <password_test id="oval:org.mitre.oval.test:tst:362" version="1" comment="Test that the password_object is supported with the username entity matching some regular expression using the var_ref attribute." check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
50 <object object_ref="oval:org.mitre.oval.test:obj:625"/>
51 <state state_ref="oval:org.mitre.oval.test:ste:548"/>
52 </password_test>
53 </tests>
54 <objects>
55 <password_object id="oval:org.mitre.oval.test:obj:943" version="1" comment="This object represents a password_object where the username equals 'root'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
56 <username>root</username>
57 </password_object>
58 <password_object id="oval:org.mitre.oval.test:obj:432" version="1" comment="This object represents a password_object where the username does not equal 'root'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
59 <username operation="not equal">root</username>
60 </password_object>
61 <password_object id="oval:org.mitre.oval.test:obj:625" version="1" comment="This object represents a password_object where the username matches the regular expression '^[^r]'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
62 <username operation="pattern match">^[^r]</username>
63 </password_object>
64 <password_object id="oval:org.mitre.oval.test:obj:662" version="1" comment="This object represents a password_object where the username equals 'root' using the var_ref attribute." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
65 <username var_ref="oval:org.mitre.oval.test:var:380" var_check="at least one"/>
66 </password_object>
67 <password_object id="oval:org.mitre.oval.test:obj:282" version="1" comment="This object represents a password_object where the username does not equal 'root' using the var_ref attribute." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
68 <username operation="not equal" var_ref="oval:org.mitre.oval.test:var:380" var_check="all"/>
69 </password_object>
70 <password_object id="oval:org.mitre.oval.test:obj:24" version="1" comment="This object represents a password_object where the username matches the regular expression '^[^r]' using the var_ref attribute." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
71 <username operation="pattern match" var_ref="oval:org.mitre.oval.test:var:549" var_check="all"/>
72 </password_object>
73 </objects>
74 <states>
75 <password_state id="oval:org.mitre.oval.test:ste:43" version="1" comment="This password_state represents a password_object where the user_id equals '0'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
76 <user_id datatype="int">0</user_id>
77 </password_state>
78 <password_state id="oval:org.mitre.oval.test:ste:548" version="1" comment="This password_state represents a password_object where the user_id equals '1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix">
79 <user_id datatype="int">1</user_id>
80 </password_state>
81 </states>
82 <variables>
83 <constant_variable id="oval:org.mitre.oval.test:var:380" version="1" comment="This constant_variable represents the string value 'root'." datatype="string">
84 <value>root</value>
85 </constant_variable>
86 <constant_variable id="oval:org.mitre.oval.test:var:549" version="1" comment="This constant_variable represents the string value '^[^r]'." datatype="string">
87 <value>^[^r]</value>
88 </constant_variable>
89 </variables>
90 </oval_definitions>