| 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</oval:schema_version> |
| 5 | <oval:timestamp>2009-01-12T10:41:00-05:00</oval:timestamp> |
| 6 | </generator> |
| 7 | <definitions> |
| 8 | <definition id="oval:org.mitre.oval.test:def:282" version="3" class="miscellaneous"> |
| 9 | <metadata> |
| 10 | <title>Evaluate to true if the empty value in filename entities is supported</title> |
| 11 | <description>Evaluate to true if the empty value in filename entities is supported</description> |
| 12 | </metadata> |
| 13 | <criteria> |
| 14 | <criterion comment="Test that /etc/passwd is collected if filename in object was empty." test_ref="oval:org.mitre.oval.test:tst:1288"/> |
| 15 | <criterion comment="Test that all files are from /etc directory." test_ref="oval:org.mitre.oval.test:tst:1289"/> |
| 16 | </criteria> |
| 17 | </definition> |
| 18 | </definitions> |
| 19 | |
| 20 | <tests> |
| 21 | <file_test id="oval:org.mitre.oval.test:tst:1288" version="1" comment="Test that /etc/passwd is collected if filename in object was empty." check_existence="at_least_one_exists" check="only one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 22 | <object object_ref="oval:org.mitre.oval.test:obj:512"/> |
| 23 | <state state_ref="oval:org.mitre.oval.test:ste:1761"/> |
| 24 | </file_test> |
| 25 | <file_test id="oval:org.mitre.oval.test:tst:1289" version="1" comment="Test that all files are from /etc directory." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 26 | <object object_ref="oval:org.mitre.oval.test:obj:512"/> |
| 27 | <state state_ref="oval:org.mitre.oval.test:ste:1762"/> |
| 28 | </file_test> |
| 29 | </tests> |
| 30 | |
| 31 | <objects> |
| 32 | <file_object id="oval:org.mitre.oval.test:obj:512" version="1" comment="Files in etc" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 33 | <path operation="pattern match">^/etc$</path> |
| 34 | <filename operation="pattern match"></filename> |
| 35 | </file_object> |
| 36 | </objects> |
| 37 | |
| 38 | <states> |
| 39 | <file_state id="oval:org.mitre.oval.test:ste:1761" version="1" comment="/etc/passwd" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 40 | <path>/etc</path> |
| 41 | <filename>passwd</filename> |
| 42 | </file_state> |
| 43 | <file_state id="oval:org.mitre.oval.test:ste:1762" version="1" comment="any /etc file" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 44 | <path>/etc</path> |
| 45 | <filename operation="pattern match"></filename> |
| 46 | </file_state> |
| 47 | </states> |
| 48 | |
| 49 | </oval_definitions> |