| 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#linux linux-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:linux-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 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:445" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the linux-def:partition_test is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the linux-def:partition_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 partition_object is supported with the name entity equal to some value." test_ref="oval:org.mitre.oval.test:tst:1854"/> |
| 19 | <criterion comment="Test that the partition_object is supported with the name entity not equal to some value." test_ref="oval:org.mitre.oval.test:tst:1401"/> |
| 20 | <criterion comment="Test that the partition_object is supported with the name entity matching some regular expression." test_ref="oval:org.mitre.oval.test:tst:1060"/> |
| 21 | </criteria> |
| 22 | </definition> |
| 23 | </definitions> |
| 24 | <tests> |
| 25 | <partition_test id="oval:org.mitre.oval.test:tst:1854" version="1" comment="Test that the partition_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#linux"> |
| 26 | <object object_ref="oval:org.mitre.oval.test:obj:1062"/> |
| 27 | <state state_ref="oval:org.mitre.oval.test:ste:1386"/> |
| 28 | </partition_test> |
| 29 | <partition_test id="oval:org.mitre.oval.test:tst:1401" version="1" comment="Test that the partition_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#linux"> |
| 30 | <object object_ref="oval:org.mitre.oval.test:obj:1245"/> |
| 31 | <state state_ref="oval:org.mitre.oval.test:ste:1643"/> |
| 32 | </partition_test> |
| 33 | <partition_test id="oval:org.mitre.oval.test:tst:1060" version="1" comment="Test that the partition_object is supported with the name entity matching some regular expression." check_existence="at_least_one_exists" check="only one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 34 | <object object_ref="oval:org.mitre.oval.test:obj:1014"/> |
| 35 | <state state_ref="oval:org.mitre.oval.test:ste:1386"/> |
| 36 | </partition_test> |
| 37 | </tests> |
| 38 | <objects> |
| 39 | <partition_object id="oval:org.mitre.oval.test:obj:1062" version="1" comment="Retrieve an partition_item with a name equal to '/'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 40 | <mount_point>/</mount_point> |
| 41 | </partition_object> |
| 42 | <partition_object id="oval:org.mitre.oval.test:obj:1245" version="1" comment="Retrieve partition_items with names that are not equal to '/'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 43 | <mount_point operation="not equal">/</mount_point> |
| 44 | </partition_object> |
| 45 | <partition_object id="oval:org.mitre.oval.test:obj:1014" version="1" comment="Retrieve partition_items with names that match the regular expression '^/'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 46 | <mount_point operation="pattern match">^/</mount_point> |
| 47 | </partition_object> |
| 48 | </objects> |
| 49 | <states> |
| 50 | <partition_state id="oval:org.mitre.oval.test:ste:1386" version="1" comment="This state represents a partition_item that has a mount_point equal to '/', a device entity that matches the regular expression '.*', mount_options entities that match the regular expression '.*', and total_space, space_used, and space_left entities greater than or equal to '0'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 51 | <mount_point>/</mount_point> |
| 52 | <device operation="pattern match">.*</device> |
| 53 | <mount_options operation="pattern match" entity_check="all">.*</mount_options> |
| 54 | <total_space datatype="int" operation="greater than or equal">0</total_space> |
| 55 | <space_used datatype="int" operation="greater than or equal">0</space_used> |
| 56 | <space_left datatype="int" operation="greater than or equal">0</space_left> |
| 57 | </partition_state> |
| 58 | <partition_state id="oval:org.mitre.oval.test:ste:1643" version="1" comment="This state represents partition_items that have a mount_point not equal to '/', a device entity that matches the regular expression '.*', mount_options entities that match the regular expression '.*', and total_space, space_used, and space_left entities greater than or equal to '0'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux"> |
| 59 | <mount_point operation="not equal">/</mount_point> |
| 60 | <device operation="pattern match">.*</device> |
| 61 | <mount_options operation="pattern match" entity_check="all">.*</mount_options> |
| 62 | <total_space datatype="int" operation="greater than or equal">0</total_space> |
| 63 | <space_used datatype="int" operation="greater than or equal">0</space_used> |
| 64 | <space_left datatype="int" operation="greater than or equal">0</space_left> |
| 65 | </partition_state> |
| 66 | </states> |
| 67 | </oval_definitions> |