| 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" 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:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 3 | <generator> |
| 4 | <oval:schema_version>5.10.1</oval:schema_version> |
| 5 | <oval:timestamp>2010-08-26T14:07:45-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:566" version="7" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if the ind-def:filehash58_test is properly supported</title> |
| 12 | <description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:filehash58_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 specifying multiple values for hash_type." test_ref="oval:org.mitre.oval.test:tst:305"/> |
| 19 | <criterion comment="Test specifying multiple values for hash_type with a 'none satisfy' var_check." test_ref="oval:org.mitre.oval.test:tst:544"/> |
| 20 | <criterion comment="Test computing the remaining four types of hashes." test_ref="oval:org.mitre.oval.test:tst:354"/> |
| 21 | </criteria> |
| 22 | </definition> |
| 23 | </definitions> |
| 24 | <tests> |
| 25 | <filehash58_test id="oval:org.mitre.oval.test:tst:305" version="3" comment="Test specifying multiple values for hash_type." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 26 | <object object_ref="oval:org.mitre.oval.test:obj:313"/> |
| 27 | <state state_ref="oval:org.mitre.oval.test:ste:531"/> |
| 28 | </filehash58_test> |
| 29 | <filehash58_test id="oval:org.mitre.oval.test:tst:544" version="3" comment="Test specifying multiple values for hash_type with a 'none satisfy' var_check." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 30 | <object object_ref="oval:org.mitre.oval.test:obj:105"/> |
| 31 | <state state_ref="oval:org.mitre.oval.test:ste:774"/> |
| 32 | </filehash58_test> |
| 33 | <filehash58_test id="oval:org.mitre.oval.test:tst:354" version="3" comment="Test computing the remaining four types of hashes." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 34 | <object object_ref="oval:org.mitre.oval.test:obj:421"/> |
| 35 | <state state_ref="oval:org.mitre.oval.test:ste:257"/> |
| 36 | </filehash58_test> |
| 37 | </tests> |
| 38 | <objects> |
| 39 | <filehash58_object id="oval:org.mitre.oval.test:obj:313" version="2" comment="MD5 and SHA-1 hashes of /bin/ls" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 40 | <path>/bin</path> |
| 41 | <filename>ls</filename> |
| 42 | <hash_type var_ref="oval:org.mitre.oval.test:var:429" var_check="at least one"/> |
| 43 | </filehash58_object> |
| 44 | <filehash58_object id="oval:org.mitre.oval.test:obj:105" version="2" comment="MD5 and SHA-1 hashes of /bin/ls" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 45 | <path>/bin</path> |
| 46 | <filename>ls</filename> |
| 47 | <hash_type var_ref="oval:org.mitre.oval.test:var:761" var_check="none satisfy"/> |
| 48 | </filehash58_object> |
| 49 | <filehash58_object id="oval:org.mitre.oval.test:obj:421" version="2" comment="SHA-224, SHA-256, SHA-384, and SHA-512 hashes of /bin/ls" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 50 | <path>/bin</path> |
| 51 | <filename>ls</filename> |
| 52 | <hash_type var_ref="oval:org.mitre.oval.test:var:761" var_check="at least one"/> |
| 53 | </filehash58_object> |
| 54 | </objects> |
| 55 | <states> |
| 56 | <filehash58_state id="oval:org.mitre.oval.test:ste:531" version="2" comment="matches any MD5 and SHA-1 hashes of /bin/ls" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 57 | <path>/bin</path> |
| 58 | <filename>ls</filename> |
| 59 | <hash_type var_ref="oval:org.mitre.oval.test:var:761" var_check="none satisfy"/> |
| 60 | </filehash58_state> |
| 61 | <filehash58_state id="oval:org.mitre.oval.test:ste:774" version="2" comment="matches any MD5 and SHA-1 hashes of /bin/ls" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 62 | <path>/bin</path> |
| 63 | <filename>ls</filename> |
| 64 | <hash_type var_ref="oval:org.mitre.oval.test:var:429" var_check="at least one"/> |
| 65 | </filehash58_state> |
| 66 | <filehash58_state id="oval:org.mitre.oval.test:ste:257" version="2" comment="matches any SHA-224, SHA-256, SHA-384, or SHA-512 hashes of /bin/ls" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent"> |
| 67 | <path>/bin</path> |
| 68 | <filename>ls</filename> |
| 69 | <hash_type var_ref="oval:org.mitre.oval.test:var:761" var_check="at least one"/> |
| 70 | </filehash58_state> |
| 71 | </states> |
| 72 | <variables> |
| 73 | <constant_variable id="oval:org.mitre.oval.test:var:429" version="1" comment="several hash algorithms in one variable" datatype="string"> |
| 74 | <value>MD5</value> |
| 75 | <value>SHA-1</value> |
| 76 | </constant_variable> |
| 77 | <constant_variable id="oval:org.mitre.oval.test:var:761" version="1" comment="the complement of oval:org.mitre.oval.test:var:429" datatype="string"> |
| 78 | <value>SHA-224</value> |
| 79 | <value>SHA-256</value> |
| 80 | <value>SHA-384</value> |
| 81 | <value>SHA-512</value> |
| 82 | </constant_variable> |
| 83 | </variables> |
| 84 | </oval_definitions> |