| 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 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:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" 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-07-22T17:27:52-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:90" version="1" class="miscellaneous"> |
| 10 | <metadata> |
| 11 | <title>Evaluate to true if unix-def:interface_test is properly supported</title> |
| 12 | <description>This definition is intended to evaluate to true if the interpreter properly supports unix-def:interface_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 | <note>Information regarding the interfaces on your particular machine can be found by running the 'ifconfig' utility.</note> |
| 17 | </notes> |
| 18 | <criteria operator="AND"> |
| 19 | <criterion comment="Test that the interface_object is supported with the name entity equal to some value." test_ref="oval:org.mitre.oval.test:tst:782"/> |
| 20 | <criterion comment="Test that the interface_object is supported with the name entity not equal to some value." test_ref="oval:org.mitre.oval.test:tst:725"/> |
| 21 | <criterion comment="Test that the interface_object is supported with the name entity matching some regular expression." test_ref="oval:org.mitre.oval.test:tst:585"/> |
| 22 | <criterion comment="Test that the interface_object is supported with the name entity equal to some value using the var_ref attribute." test_ref="oval:org.mitre.oval.test:tst:91"/> |
| 23 | <criterion comment="Test that the interface_object is supported with the name entity not equal to some value using the var_ref attribute." test_ref="oval:org.mitre.oval.test:tst:414"/> |
| 24 | <criterion comment="Test that the interface_object is supported with the name entity matching some regular expression using the var_ref attribute." test_ref="oval:org.mitre.oval.test:tst:443"/> |
| 25 | </criteria> |
| 26 | </definition> |
| 27 | </definitions> |
| 28 | <tests> |
| 29 | <interface_test id="oval:org.mitre.oval.test:tst:782" version="1" comment="Test that the interface_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"> |
| 30 | <object object_ref="oval:org.mitre.oval.test:obj:555"/> |
| 31 | <state state_ref="oval:org.mitre.oval.test:ste:813"/> |
| 32 | </interface_test> |
| 33 | <interface_test id="oval:org.mitre.oval.test:tst:725" version="1" comment="Test that the interface_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"> |
| 34 | <object object_ref="oval:org.mitre.oval.test:obj:155"/> |
| 35 | <state state_ref="oval:org.mitre.oval.test:ste:813"/> |
| 36 | </interface_test> |
| 37 | <interface_test id="oval:org.mitre.oval.test:tst:585" version="1" comment="Test that the interface_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"> |
| 38 | <object object_ref="oval:org.mitre.oval.test:obj:655"/> |
| 39 | <state state_ref="oval:org.mitre.oval.test:ste:346"/> |
| 40 | </interface_test> |
| 41 | <interface_test id="oval:org.mitre.oval.test:tst:91" version="1" comment="Test that the interface_object is supported with the name entity equal to some value using the var_ref attribute." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 42 | <object object_ref="oval:org.mitre.oval.test:obj:637"/> |
| 43 | <state state_ref="oval:org.mitre.oval.test:ste:813"/> |
| 44 | </interface_test> |
| 45 | <interface_test id="oval:org.mitre.oval.test:tst:414" version="1" comment="Test that the interface_object is supported with the name entity not equal to some value using the var_ref attribute." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 46 | <object object_ref="oval:org.mitre.oval.test:obj:590"/> |
| 47 | <state state_ref="oval:org.mitre.oval.test:ste:346"/> |
| 48 | </interface_test> |
| 49 | <interface_test id="oval:org.mitre.oval.test:tst:443" version="1" comment="Test that the interface_object is supported with the name entity matching some regular expression using the var_ref attribute." check_existence="at_least_one_exists" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 50 | <object object_ref="oval:org.mitre.oval.test:obj:502"/> |
| 51 | <state state_ref="oval:org.mitre.oval.test:ste:243"/> |
| 52 | </interface_test> |
| 53 | </tests> |
| 54 | <objects> |
| 55 | <interface_object id="oval:org.mitre.oval.test:obj:555" version="1" comment="This object represents an interface_object where the name equals 'lo'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 56 | <name>lo</name> |
| 57 | </interface_object> |
| 58 | <interface_object id="oval:org.mitre.oval.test:obj:155" version="1" comment="This object represents an interface_object where the name is not equal to 'eth0'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 59 | <name operation="not equal">eth0</name> |
| 60 | </interface_object> |
| 61 | <interface_object id="oval:org.mitre.oval.test:obj:655" version="1" comment="This object represents an interface_object where the name matches the regular expression '^(?!lo)'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 62 | <name operation="pattern match">^(?!lo)</name> |
| 63 | </interface_object> |
| 64 | <interface_object id="oval:org.mitre.oval.test:obj:637" version="1" comment="This object represents an interface_object where the name equals 'lo' using the var_ref attribute." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 65 | <name var_ref="oval:org.mitre.oval.test:var:612" var_check="all"/> |
| 66 | </interface_object> |
| 67 | <interface_object id="oval:org.mitre.oval.test:obj:590" version="1" comment="This object represents an interface_object where the name is not equal to 'lo' using the var_ref attribute." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 68 | <name operation="not equal" var_ref="oval:org.mitre.oval.test:var:612" var_check="all"/> |
| 69 | </interface_object> |
| 70 | <interface_object id="oval:org.mitre.oval.test:obj:502" version="1" comment="This object represents an interface_object where the name matches the regular expression '^e.+0$' using the var_ref attribute." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 71 | <name operation="pattern match" var_ref="oval:org.mitre.oval.test:var:927" var_check="all"/> |
| 72 | </interface_object> |
| 73 | </objects> |
| 74 | <states> |
| 75 | <interface_state id="oval:org.mitre.oval.test:ste:813" version="1" comment="This interface_state represents an interface_object where the inet_addr equals '127.0.0.1'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 76 | <inet_addr>127.0.0.1</inet_addr> |
| 77 | </interface_state> |
| 78 | <interface_state id="oval:org.mitre.oval.test:ste:346" version="1" comment="This interface_state represents an interface_object where the name equals 'eth0'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 79 | <name>eth0</name> |
| 80 | </interface_state> |
| 81 | <interface_state id="oval:org.mitre.oval.test:ste:243" version="1" comment="This interface_state represents an interface_object where the flag equals 'UP'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix"> |
| 82 | <flag entity_check="at least one">UP</flag> |
| 83 | </interface_state> |
| 84 | </states> |
| 85 | <variables> |
| 86 | <constant_variable id="oval:org.mitre.oval.test:var:612" version="1" comment="This constant_variable represents the string value 'lo'." datatype="string"> |
| 87 | <value>lo</value> |
| 88 | </constant_variable> |
| 89 | <constant_variable id="oval:org.mitre.oval.test:var:927" version="1" comment="This constant_variable represents the string value '^e.+0$'." datatype="string"> |
| 90 | <value>^e.+0$</value> |
| 91 | </constant_variable> |
| 92 | </variables> |
| 93 | </oval_definitions> |