Blob Blame History Raw
<?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#linux linux-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:linux-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
  <generator>
    <oval:schema_version>5.10.1</oval:schema_version>
    <oval:timestamp>2009-01-12T10:41: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:967" version="2" class="miscellaneous">
      <metadata>
        <title>Evaluate to true if the linux-def:selinuxboolean_test is properly supported</title>
        <description>This definition is intended to evalutate to true if the interpreter properly supports the linux-def:selinuxboolean_test.</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 selinuxboolean_object is supported with the name entity equal to some value." test_ref="oval:org.mitre.oval.test:tst:1766"/>
        <criterion comment="Test that the selinuxboolean_object is supported with the name entity not equal to some value." test_ref="oval:org.mitre.oval.test:tst:1067"/>
        <criterion comment="Test that the selinuxboolean_object is supported with the name entity matching some regular expression." test_ref="oval:org.mitre.oval.test:tst:1985"/>
      </criteria>
    </definition>
  </definitions>
  <tests>
    <selinuxboolean_test id="oval:org.mitre.oval.test:tst:1766" version="2" comment="Test that the selinuxboolean_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#linux">
      <object object_ref="oval:org.mitre.oval.test:obj:1137"/>
      <state state_ref="oval:org.mitre.oval.test:ste:1660"/>
    </selinuxboolean_test>
    <selinuxboolean_test id="oval:org.mitre.oval.test:tst:1067" version="2" comment="Test that the selinuxboolean_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#linux">
      <object object_ref="oval:org.mitre.oval.test:obj:1464"/>
      <state state_ref="oval:org.mitre.oval.test:ste:1638"/>
    </selinuxboolean_test>
    <selinuxboolean_test id="oval:org.mitre.oval.test:tst:1985" version="2" comment="Test that the selinuxboolean_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#linux">
      <object object_ref="oval:org.mitre.oval.test:obj:1119"/>
      <state state_ref="oval:org.mitre.oval.test:ste:1701"/>
    </selinuxboolean_test>
  </tests>
  <objects>
    <selinuxboolean_object id="oval:org.mitre.oval.test:obj:1137" version="1" comment="Retrieve an selinuxboolean_item with a name equal to 'allow_console_login'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
      <name>allow_console_login</name>
    </selinuxboolean_object>
    <selinuxboolean_object id="oval:org.mitre.oval.test:obj:1464" version="1" comment="Retrieve selinuxboolean_items with names that are not equal to 'allow_console_login'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
      <name operation="not equal">allow_console_login</name>
    </selinuxboolean_object>
    <selinuxboolean_object id="oval:org.mitre.oval.test:obj:1119" version="1" comment="Retrieve selinuxboolean_items with names that match the regular expression '^allow[_a-z]+$'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
      <name operation="pattern match">^allow[_a-z]+$</name>
    </selinuxboolean_object>
  </objects>
  <states>
    <selinuxboolean_state id="oval:org.mitre.oval.test:ste:1660" version="2" comment="This state represents an selinuxboolean_item that has a name equal to 'allow_console_login', a current_status that is equal to either '0' or '1', and a pending_status that is not equal to either 'true' or 'false'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
      <name>allow_console_login</name>
      <current_status datatype="boolean" var_ref="oval:org.mitre.oval.test:var:911" var_check="only one"/>
      <pending_status datatype="boolean" operation="not equal" var_ref="oval:org.mitre.oval.test:var:280" var_check="only one"/>
    </selinuxboolean_state>
    <selinuxboolean_state id="oval:org.mitre.oval.test:ste:1638" version="2" comment="This state represents selinuxboolean_items that have a name not equal to 'allow_console_login', a current_status that is equal to either '0' or '1', and a pending_status that is not equal to either 'true' or 'false'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
      <name operation="not equal">allow_console_login</name>
      <current_status datatype="boolean" var_ref="oval:org.mitre.oval.test:var:911" var_check="only one"/>
      <pending_status datatype="boolean" operation="not equal" var_ref="oval:org.mitre.oval.test:var:280" var_check="only one"/>
    </selinuxboolean_state>
    <selinuxboolean_state id="oval:org.mitre.oval.test:ste:1701" version="2" comment="This state represents selinuxboolean_items that have a name that matches the regular expression '^allow[_a-z]+$', a current_status that is equal to either '0' or '1', and a pending_status that is not equal to either 'true' or 'false'." xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#linux">
      <name operation="pattern match">^allow[_a-z]+$</name>
      <current_status datatype="boolean" var_ref="oval:org.mitre.oval.test:var:911" var_check="only one"/>
      <pending_status datatype="boolean" operation="not equal" var_ref="oval:org.mitre.oval.test:var:280" var_check="only one"/>
    </selinuxboolean_state>
  </states>
  <variables>
    <constant_variable id="oval:org.mitre.oval.test:var:911" version="1" comment="This variable represents the numeric representations of the boolean values for true and false." datatype="boolean">
      <value>1</value>
      <value>0</value>
    </constant_variable>
    <constant_variable id="oval:org.mitre.oval.test:var:280" version="1" comment="This variable represents the textual representations of the boolean values for true and false." datatype="boolean">
      <value>true</value>
      <value>false</value>
    </constant_variable>
  </variables>
</oval_definitions>