| 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 | <generator> |
| 4 | <oval:schema_version>5.10.1</oval:schema_version> |
| 5 | <oval:timestamp>2009-01-12T10:41: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:626" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the unix-def:runlevel_test is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the unix-def:runlevel_test.</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 runlevel_object is supported with the service_name entity equal to some value and a runlevel entity equal to some value." test_ref="oval:org.mitre.oval.test:tst:303"/> |
| 19 | <criterion comment="Test that the runlevel_object is supported with the service_name entity not equal to some value and a runlevel entity equal to some value." test_ref="oval:org.mitre.oval.test:tst:235"/> |
| 20 | <criterion comment="Test that the runlevel_object is supported with the service_name entity matching some regular expression and a runlevel entity equal to some value." test_ref="oval:org.mitre.oval.test:tst:981"/> |
| 21 | <criterion comment="Test that the runlevel_object is supported with the service_name entity equal to some value and a runlevel entity not equal to some value." test_ref="oval:org.mitre.oval.test:tst:831"/> |
| 22 | <criterion comment="Test that the runlevel_object is supported with the service_name entity equal to some value and a runlevel entity that matches some regular expression." test_ref="oval:org.mitre.oval.test:tst:693"/> |
| 23 | </criteria> |
| 24 | </definition> |
| 25 | </definitions> |
| 26 | <tests> |
| 27 | <runlevel_test id="oval:org.mitre.oval.test:tst:303" version="1" comment="Test that the runlevel_object is supported with the service_name entity equal to some value and a runlevel entity equal to some value." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 28 | <object object_ref="oval:org.mitre.oval.test:obj:486"/> |
| 29 | <state state_ref="oval:org.mitre.oval.test:ste:724"/> |
| 30 | </runlevel_test> |
| 31 | <runlevel_test id="oval:org.mitre.oval.test:tst:235" version="1" comment="Test that the runlevel_object is supported with the service_name entity not equal to some value and a runlevel entity equal to some value." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 32 | <object object_ref="oval:org.mitre.oval.test:obj:570"/> |
| 33 | <state state_ref="oval:org.mitre.oval.test:ste:797"/> |
| 34 | </runlevel_test> |
| 35 | <runlevel_test id="oval:org.mitre.oval.test:tst:981" version="1" comment="Test that the runlevel_object is supported with the service_name entity matching some regular expression and a runlevel entity equal to some value." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 36 | <object object_ref="oval:org.mitre.oval.test:obj:92"/> |
| 37 | <state state_ref="oval:org.mitre.oval.test:ste:481"/> |
| 38 | </runlevel_test> |
| 39 | <runlevel_test id="oval:org.mitre.oval.test:tst:831" version="1" comment="Test that the runlevel_object is supported with the service_name entity equal to some value and a runlevel entity not equal to some value." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 40 | <object object_ref="oval:org.mitre.oval.test:obj:888"/> |
| 41 | <state state_ref="oval:org.mitre.oval.test:ste:865"/> |
| 42 | </runlevel_test> |
| 43 | <runlevel_test id="oval:org.mitre.oval.test:tst:693" version="1" comment="Test that the runlevel_object is supported with the service_name entity equal to some value and a runlevel entity that matches some regular expression." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 44 | <object object_ref="oval:org.mitre.oval.test:obj:952"/> |
| 45 | <state state_ref="oval:org.mitre.oval.test:ste:501"/> |
| 46 | </runlevel_test> |
| 47 | </tests> |
| 48 | <objects> |
| 49 | <runlevel_object id="oval:org.mitre.oval.test:obj:486" version="1" comment="Retrieve a runlevel_item with a service_name equal to 'sshd' and a runlevel equal to '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 50 | <service_name>sshd</service_name> |
| 51 | <runlevel>3</runlevel> |
| 52 | </runlevel_object> |
| 53 | <runlevel_object id="oval:org.mitre.oval.test:obj:570" version="1" comment="Retrieve runlevel_items with service_names that are not equal to 'sshd' and a runlevel equal to '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 54 | <service_name operation="not equal">sshd</service_name> |
| 55 | <runlevel>3</runlevel> |
| 56 | </runlevel_object> |
| 57 | <runlevel_object id="oval:org.mitre.oval.test:obj:92" version="1" comment="Retrieve runlevel_items with service_names that match the regular expression '^ss.d$' and a runlevel that equals '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 58 | <service_name operation="pattern match">^ss.d$</service_name> |
| 59 | <runlevel>3</runlevel> |
| 60 | </runlevel_object> |
| 61 | <runlevel_object id="oval:org.mitre.oval.test:obj:888" version="1" comment="Retrieve runlevel_items with service_name equal to 'sshd' and a runlevel not equal to '0'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 62 | <service_name>sshd</service_name> |
| 63 | <runlevel operation="not equal">0</runlevel> |
| 64 | </runlevel_object> |
| 65 | <runlevel_object id="oval:org.mitre.oval.test:obj:952" version="1" comment="Retrieve runlevel_items with a service_name equal to 'sshd' and a runlevel that matches the regular expression '^[0-6sS]$'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 66 | <service_name>sshd</service_name> |
| 67 | <runlevel operation="pattern match">^[0-6sS]$</runlevel> |
| 68 | </runlevel_object> |
| 69 | </objects> |
| 70 | <states> |
| 71 | <runlevel_state id="oval:org.mitre.oval.test:ste:724" version="1" comment="This state represents an runlevel_item that has a service_name equal to 'sshd' and a runlevel equal to '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 72 | <service_name>sshd</service_name> |
| 73 | <runlevel>3</runlevel> |
| 74 | </runlevel_state> |
| 75 | <runlevel_state id="oval:org.mitre.oval.test:ste:797" version="1" comment="This state represents runlevel_items that have a service_name not equal to 'sshd' and a runlevel equal to '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 76 | <service_name operation="not equal">sshd</service_name> |
| 77 | <runlevel>3</runlevel> |
| 78 | </runlevel_state> |
| 79 | <runlevel_state id="oval:org.mitre.oval.test:ste:481" version="1" comment="This state represents runlevel_items that have a service_name that matches the regular expression '^ss.d$' and a runlevel equal to '3'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 80 | <service_name operation="pattern match">^ss.d$</service_name> |
| 81 | <runlevel>3</runlevel> |
| 82 | </runlevel_state> |
| 83 | <runlevel_state id="oval:org.mitre.oval.test:ste:865" version="1" comment="This state represents runlevel_items that have a service_name not equal to 'sshd' and a runlevel not equal to '0'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 84 | <service_name>sshd</service_name> |
| 85 | <runlevel operation="not equal">0</runlevel> |
| 86 | </runlevel_state> |
| 87 | <runlevel_state id="oval:org.mitre.oval.test:ste:501" version="1" comment="This state represents runlevel_items that have a service_name that matches the regular expression 'sshd' and a runlevel that matches the regular expression '^[0-6sS]$'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 88 | <service_name>sshd</service_name> |
| 89 | <runlevel operation="pattern match">^[0-6sS]$</runlevel> |
| 90 | </runlevel_state> |
| 91 | </states> |
| 92 | </oval_definitions> |