<?xml version="1.0" encoding="UTF-8"?>
<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">
  <generator>
    <oval:schema_version>5.10.1</oval:schema_version>
    <oval:timestamp>2012-09-06T18:27:00-05:00</oval:timestamp>
    <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>
  </generator>
  <definitions>
    <definition id="oval:org.mitre.oval.test:def:353" version="1" class="miscellaneous">
      <metadata>
        <title>Evaluate to true if the ind-def:environmentvariable58_test is properly supported</title>
        <description>This definition is intended to evalutate to true if the interpreter properly supports the ind-def:environmentvariable58_test and all of its valid operations.</description>
      </metadata>
      <notes>
        <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>
      </notes>
      <criteria operator="AND">
        <criterion comment="Test that the current process can be queried using a nil pid" test_ref="oval:org.mitre.oval.test:tst:1513"/>
        <criterion comment="Test querying a process" test_ref="oval:org.mitre.oval.test:tst:1616"/>
        <criterion comment="A slightly more complex query which scans all processes and uses a regex on the variable name" test_ref="oval:org.mitre.oval.test:tst:1337"/>
      </criteria>
    </definition>
  </definitions>
  <tests>
    <environmentvariable58_test id="oval:org.mitre.oval.test:tst:1513" version="1" comment="Test that the current process can be queried using a nil pid" check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <object object_ref="oval:org.mitre.oval.test:obj:1461"/>
      <state state_ref="oval:org.mitre.oval.test:ste:1062"/>
    </environmentvariable58_test>
    <environmentvariable58_test id="oval:org.mitre.oval.test:tst:1616" version="1" comment="Test querying a process" check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <object object_ref="oval:org.mitre.oval.test:obj:1257"/>
      <state state_ref="oval:org.mitre.oval.test:ste:1171"/>
    </environmentvariable58_test>
    <environmentvariable58_test id="oval:org.mitre.oval.test:tst:1337" version="1" comment="A slightly more complex query which scans all processes and uses a regex on the variable name" check_existence="at_least_one_exists" check="at least one" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <object object_ref="oval:org.mitre.oval.test:obj:1030"/>
      <state state_ref="oval:org.mitre.oval.test:ste:853"/>
    </environmentvariable58_test>
  </tests>
  <objects>
    <environmentvariable58_object id="oval:org.mitre.oval.test:obj:1461" version="1" comment="Get the home directory of the current process' user" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <pid datatype="int" xsi:nil="true"/>
      <name>HOME</name>
    </environmentvariable58_object>
    <environmentvariable58_object id="oval:org.mitre.oval.test:obj:1257" version="1" comment="Get non-PATH env vars of a particular pid" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <oval-def:notes>
        <oval-def:note>There's no fixed pid to use here... you'll have to pick your own pid of a 32-bit process.</oval-def:note>
      </oval-def:notes>
      <pid datatype="int" operation="equals">5716</pid>
      <name operation="case insensitive not equal">PATH</name>
    </environmentvariable58_object>
    <environmentvariable58_object id="oval:org.mitre.oval.test:obj:1030" version="1" comment="Get env vars of all processes which start with S" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <pid datatype="int" operation="greater than">0</pid>
      <name operation="pattern match">^S</name>
    </environmentvariable58_object>
  </objects>
  <states>
    <environmentvariable58_state id="oval:org.mitre.oval.test:ste:1062" version="1" comment="name must be HOMEPATH" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <name>HOME</name>
    </environmentvariable58_state>
    <environmentvariable58_state id="oval:org.mitre.oval.test:ste:1171" version="1" comment="name must not be PATH" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <name operation="case insensitive not equal">PATH</name>
    </environmentvariable58_state>
    <environmentvariable58_state id="oval:org.mitre.oval.test:ste:853" version="1" comment="name must start with S" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <name operation="pattern match">^S</name>
    </environmentvariable58_state>
  </states>
</oval_definitions>
