Blob Blame History Raw
<?xml version="1.0"?>
<oval_definitions xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:ind="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ind-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent" xmlns:unix-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" xmlns:lin-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xsi:schemaLocation="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix unix-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#independent independent-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5#linux linux-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-definitions-5 oval-definitions-schema.xsd http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd">
  <generator>
    <oval:schema_version>5.10</oval:schema_version>
    <oval:timestamp>0001-01-01T00:00:00+00:00</oval:timestamp>
  </generator>

  <definitions>
    <definition class="compliance" version="1" id="oval:x:def:1">
      <metadata>
        <title>Specify a file path using variable with two values</title>
        <description>x</description>
        <affected family="unix">
          <platform>multi_platform_all</platform>
        </affected>
      </metadata>
          <criteria operator="AND">
            <criterion comment="Check multiple paths" test_ref="oval:x:tst:1"/>
          </criteria>
    </definition>
  </definitions>

  <tests>
        <file_test xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:x:tst:1" version="1" comment="Verify all paths exist" check_existence="all_exist" check="all">
          <object object_ref="oval:x:obj:1"/>
        </file_test>
  </tests>

  <objects>
        <file_object xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#unix" id="oval:x:obj:1" version="1" comment="uses var_check=all together with operation=equals">
          <path datatype="string" var_ref="oval:x:var:1" var_check="all" operation="equals"/>
          <filename xsi:nil="true" datatype="string"/>
        </file_object>
  </objects>

  <variables>
        <constant_variable datatype="string" comment="2 file paths" version="1" id="oval:x:var:1">
            <value>/tmp/numbers</value>
            <value>/tmp/letters</value>
        </constant_variable>
  </variables>
</oval_definitions>