| 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>2010-07-07T15:18:16-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:307" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the unix-def:process58_test is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the unix-def:process58_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 process58_object is supported with the name entity equal to some value." test_ref="oval:org.mitre.oval.test:tst:440"/> |
| 19 | <criterion comment="Test that the process58_object is supported with the name entity not equal to some value." test_ref="oval:org.mitre.oval.test:tst:869"/> |
| 20 | <criterion comment="Test that the process58_object is supported with the name entity matching some regular expression." test_ref="oval:org.mitre.oval.test:tst:565"/> |
| 21 | <criterion comment="Test that the process58_object is supported with the pid entity." test_ref="oval:org.mitre.oval.test:tst:792"/> |
| 22 | <criterion comment="Test that the process58_object is supported with the pid entity and an integer less than operation." test_ref="oval:org.mitre.oval.test:tst:406"/> |
| 23 | </criteria> |
| 24 | </definition> |
| 25 | </definitions> |
| 26 | <tests> |
| 27 | <process58_test id="oval:org.mitre.oval.test:tst:440" version="1" comment="Test that the process58_object is supported with the name 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:67"/> |
| 29 | <state state_ref="oval:org.mitre.oval.test:ste:77"/> |
| 30 | </process58_test> |
| 31 | <process58_test id="oval:org.mitre.oval.test:tst:869" version="1" comment="Test that the process58_object is supported with the name entity not 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:419"/> |
| 33 | <state state_ref="oval:org.mitre.oval.test:ste:455"/> |
| 34 | </process58_test> |
| 35 | <process58_test id="oval:org.mitre.oval.test:tst:565" version="1" comment="Test that the process58_object is supported with the name entity matching some regular expression." 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:868"/> |
| 37 | <state state_ref="oval:org.mitre.oval.test:ste:874"/> |
| 38 | </process58_test> |
| 39 | <process58_test id="oval:org.mitre.oval.test:tst:792" version="1" comment="Test that the process58_object is supported with the pid entity." 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:580"/> |
| 41 | <state state_ref="oval:org.mitre.oval.test:ste:390"/> |
| 42 | </process58_test> |
| 43 | <process58_test id="oval:org.mitre.oval.test:tst:406" version="1" comment="Test that the process58_object is supported with the pid entity and an integer less than operation." 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:540"/> |
| 45 | <state state_ref="oval:org.mitre.oval.test:ste:30"/> |
| 46 | </process58_test> |
| 47 | </tests> |
| 48 | <objects> |
| 49 | <process58_object id="oval:org.mitre.oval.test:obj:67" version="1" comment="Retrieve an process58_item with a name equal to 'hald'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 50 | <command_line>hald</command_line> |
| 51 | <pid datatype="int" operation="greater than">0</pid> |
| 52 | </process58_object> |
| 53 | <process58_object id="oval:org.mitre.oval.test:obj:419" version="1" comment="Retrieve process58_items with names that are not equal to 'hald'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 54 | <command_line operation="not equal">hald</command_line> |
| 55 | <pid datatype="int" operation="greater than">0</pid> |
| 56 | </process58_object> |
| 57 | <process58_object id="oval:org.mitre.oval.test:obj:868" version="1" comment="Retrieve process58_items with names that match the regular expression '^ha.d$'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 58 | <command_line operation="pattern match">^ha.d$</command_line> |
| 59 | <pid datatype="int" operation="greater than">0</pid> |
| 60 | </process58_object> |
| 61 | <process58_object id="oval:org.mitre.oval.test:obj:580" version="1" comment="Retrieve process58_items with pid = 1." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 62 | <command_line operation="pattern match"/> |
| 63 | <pid datatype="int">1</pid> |
| 64 | </process58_object> |
| 65 | <process58_object id="oval:org.mitre.oval.test:obj:540" version="1" comment="Retrieve process58_items with pid less than 10." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 66 | <command_line operation="pattern match"/> |
| 67 | <pid datatype="int" operation="less than">10</pid> |
| 68 | </process58_object> |
| 69 | </objects> |
| 70 | <states> |
| 71 | <process58_state id="oval:org.mitre.oval.test:ste:77" version="1" comment="This state represents an process58_item that has a name equal to 'hald'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 72 | <command_line>hald</command_line> |
| 73 | </process58_state> |
| 74 | <process58_state id="oval:org.mitre.oval.test:ste:455" version="1" comment="This state represents process58_items that have a name not equal to 'hald'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 75 | <command_line operation="not equal">hald</command_line> |
| 76 | </process58_state> |
| 77 | <process58_state id="oval:org.mitre.oval.test:ste:874" version="1" comment="This state represents process58_items that have a name that matches the regular expression '^ha.d$'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 78 | <command_line operation="pattern match">^ha.d$</command_line> |
| 79 | </process58_state> |
| 80 | <process58_state id="oval:org.mitre.oval.test:ste:390" version="1" comment="process58_items whose command starts with the word 'init'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 81 | <command_line operation="pattern match">^init\b</command_line> |
| 82 | </process58_state> |
| 83 | <process58_state id="oval:org.mitre.oval.test:ste:30" version="1" comment="process58_items with pid less than 10." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 84 | <pid datatype="int" operation="less than">10</pid> |
| 85 | </process58_state> |
| 86 | </states> |
| 87 | </oval_definitions> |