|
| 1 | +<?xml version="1.0"?> |
| 2 | +<oval:oval_definitions xmlns:ns2="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:ns3="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:ns4="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd 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 http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd"> |
| 3 | + <oval:generator> |
| 4 | + <ns2:product_name>jcerny</ns2:product_name> |
| 5 | + <ns2:product_version>2.0</ns2:product_version> |
| 6 | + <ns2:schema_version>5.11</ns2:schema_version> |
| 7 | + <ns2:timestamp>2023-01-10T14:25:10</ns2:timestamp> |
| 8 | + </oval:generator> |
| 9 | + <oval:definitions> |
| 10 | + <oval:definition class="compliance" id="oval:x:def:1" version="1"> |
| 11 | + <oval:metadata> |
| 12 | + <oval:title>Test rhbz#2126882</oval:title> |
| 13 | + <oval:description>This definition contains a filter that references a variable that depends on an entity that does not exist on the system.</oval:description> |
| 14 | + </oval:metadata> |
| 15 | + <oval:criteria operator="AND"> |
| 16 | + <oval:criterion comment="file_test" test_ref="oval:x:tst:1"/> |
| 17 | + </oval:criteria> |
| 18 | + </oval:definition> |
| 19 | + </oval:definitions> |
| 20 | + <oval:tests> |
| 21 | + <ns3:file_test check="all" comment="file_test" id="oval:x:tst:1" version="1"> |
| 22 | + <ns3:object object_ref="oval:x:obj:1"/> |
| 23 | + </ns3:file_test> |
| 24 | + </oval:tests> |
| 25 | + <oval:objects> |
| 26 | + <ns3:file_object comment="object with a filter" id="oval:x:obj:1" version="1"> |
| 27 | + <ns3:path>/tmp</ns3:path> |
| 28 | + <ns3:filename operation="pattern match">^key_file$</ns3:filename> |
| 29 | + <oval:filter action="exclude">oval:x:ste:1</oval:filter> |
| 30 | + </ns3:file_object> |
| 31 | + <ns4:textfilecontent54_object comment="object that doesn't exist, used in variable that is used in filter" id="oval:x:obj:2" version="1" > |
| 32 | + <ns4:filepath>/nonexistent</ns4:filepath> |
| 33 | + <ns4:pattern operation="pattern match">^ssh_keys:\w+:(\w+):.*</ns4:pattern> |
| 34 | + <ns4:instance datatype="int" operation="equals">1</ns4:instance> |
| 35 | + </ns4:textfilecontent54_object> |
| 36 | + </oval:objects> |
| 37 | + <oval:states> |
| 38 | + <ns3:file_state comment="state used in filter, references a variable" id="oval:x:ste:1" version="1"> |
| 39 | + <ns3:path>/tmp</ns3:path> |
| 40 | + <ns3:filename operation="pattern match">^key_file$</ns3:filename> |
| 41 | + <ns3:group_id datatype="int" var_ref="oval:x:var:1"/> |
| 42 | + <ns3:user_id datatype="int">0</ns3:user_id> |
| 43 | + <ns3:suid datatype="boolean">false</ns3:suid> |
| 44 | + <ns3:sgid datatype="boolean">false</ns3:sgid> |
| 45 | + <ns3:sticky datatype="boolean">false</ns3:sticky> |
| 46 | + <ns3:uexec datatype="boolean">false</ns3:uexec> |
| 47 | + <ns3:gwrite datatype="boolean">false</ns3:gwrite> |
| 48 | + <ns3:gexec datatype="boolean">false</ns3:gexec> |
| 49 | + <ns3:oread datatype="boolean">false</ns3:oread> |
| 50 | + <ns3:owrite datatype="boolean">false</ns3:owrite> |
| 51 | + <ns3:oexec datatype="boolean">false</ns3:oexec> |
| 52 | + </ns3:file_state> |
| 53 | + </oval:states> |
| 54 | + <oval:variables> |
| 55 | + <oval:local_variable id="oval:x:var:1" datatype="int" version="1" comment="variable used in state, referencing object that doesn't exist"> |
| 56 | + <oval:object_component item_field="subexpression" object_ref="oval:x:obj:2"/> |
| 57 | + </oval:local_variable> |
| 58 | + </oval:variables> |
| 59 | +</oval:oval_definitions> |
0 commit comments