<?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 http://oval.mitre.org/XMLSchema/oval-common-5 oval-common-schema.xsd" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5">
  <generator>
    <oval:product_name>The OVAL Repository</oval:product_name>
    <oval:schema_version>5.10</oval:schema_version>
    <oval:timestamp>2015-09-03T10:28:51.352-04:00</oval:timestamp>
  </generator>
  <definitions>
    <definition id="oval:org.mitre.oval:def:15082" version="5" class="compliance">
      <metadata>
        <title>Each user must have unique UID</title>
        <affected family="unix">
          <platform>Red Hat Enterprise Linux 4</platform>
        </affected>
        <reference source="CCE" ref_id="CCE-6224-0" ref_url="http://cce.mitre.org/lists/data/downloads/cce-rhel4-5.20090506.xls"/>
        <description>Each user must have unique UID</description>
        <oval_repository>
          <dates>
            <submitted date="2012-03-31T08:11:14">
              <contributor organization="Pivotal Security LLC">Gaurav Kumar</contributor>
            </submitted>
            <status_change date="2012-04-06T11:30:56.205-04:00">DRAFT</status_change>
            <status_change date="2012-04-23T04:00:13.408-04:00">INTERIM</status_change>
            <status_change date="2012-05-14T04:00:06.637-04:00">ACCEPTED</status_change>
            <modified comment="EDITED oval:org.mitre.oval:def:15082 - Fixed Definitions with missing platforms." date="2012-12-12T17:14:00.907-05:00">
              <contributor organization="SecPod Technologies">Chandan S</contributor>
            </modified>
            <status_change date="2012-12-12T17:21:34.233-05:00">INTERIM</status_change>
            <status_change date="2012-12-31T04:01:10.009-05:00">ACCEPTED</status_change>
          </dates>
          <status>ACCEPTED</status>
        </oval_repository>
      </metadata>
      <criteria>
        <criterion comment="Count of all UIDs must be equal to count of unique UIDs" test_ref="oval:org.mitre.oval:tst:79754"/>
      </criteria>
    </definition>
  </definitions>
  <tests>
    <variable_test id="oval:org.mitre.oval:tst:79754" version="1" comment="Count of all UIDs must be equal to count of unique UIDs" check_existence="all_exist" check="all" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <object object_ref="oval:org.mitre.oval:obj:23672"/>
      <state state_ref="oval:org.mitre.oval:ste:19413"/>
    </variable_test>
  </tests>
  <objects>
    <variable_object id="oval:org.mitre.oval:obj:23672" version="1" comment="Count of unique UIDs from /etc/shadow" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <var_ref>oval:org.mitre.oval:var:1299</var_ref>
    </variable_object>
    <variable_object id="oval:org.mitre.oval:obj:23772" version="1" comment="Unique UIDs from /etc/shadow" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <var_ref>oval:org.mitre.oval:var:1809</var_ref>
    </variable_object>
    <textfilecontent54_object id="oval:org.mitre.oval:obj:23003" version="1" comment="list of all UIDs from /etc/shadow" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <filepath>/etc/passwd</filepath>
      <pattern operation="pattern match">:[\d]+?:</pattern>
      <instance datatype="int" operation="greater than">0</instance>
    </textfilecontent54_object>
  </objects>
  <states>
    <variable_state id="oval:org.mitre.oval:ste:19413" version="1" comment="count of all unique UIDs" xmlns="http://oval.mitre.org/XMLSchema/oval-definitions-5#independent">
      <value var_ref="oval:org.mitre.oval:var:1926" datatype="int"/>
    </variable_state>
  </states>
  <variables>
    <local_variable id="oval:org.mitre.oval:var:1926" version="1" comment="count of all UIDs from /etc/shadow" datatype="int">
      <count>
        <object_component object_ref="oval:org.mitre.oval:obj:23003" item_field="text"/>
      </count>
    </local_variable>
    <local_variable id="oval:org.mitre.oval:var:1299" version="1" comment="Count of unique UIDs from /etc/shadow" datatype="int">
      <count>
        <object_component object_ref="oval:org.mitre.oval:obj:23772" item_field="value"/>
      </count>
    </local_variable>
    <local_variable id="oval:org.mitre.oval:var:1809" version="1" comment="extract Unique UIDs from /etc/shadow" datatype="int">
      <unique>
        <object_component object_ref="oval:org.mitre.oval:obj:23003" item_field="text"/>
      </unique>
    </local_variable>
  </variables>
</oval_definitions>