<def-group>
  <definition class="compliance" id="samba_security_option"
  version="1">
    <metadata>
      <title>Disable Share Security</title>
      <affected family="unix">
        <platform>CentOS 4</platform>
		<platform>CentOS 5</platform>
		<platform>Red Hat Enterprise Linux 4</platform>
		<platform>Red Hat Enterprise Linux 5</platform>
      </affected>
      <description>The smb.conf file must not have the "security" 
	  option set to "share".</description>
    </metadata>
    <criteria comment="packages samba-common and samba3x-common removed or /etc/samba/smb.conf configured correctly" operator="OR">
		<extend_definition comment="rpm packages samba-common and samba3x-common removed" definition_ref="package_samba-common_removed" />
		<criterion test_ref="test_samba_security_option" />
	</criteria>
  </definition>

  <ind:textfilecontent54_test check="all" check_existence="none_exist" comment="samba access" id="test_samba_security_option" version="1">
    <ind:object object_ref="object_samba_security_option" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object id="object_samba_security_option"
  version="1">
    <ind:filepath>/etc/samba/smb.conf</ind:filepath>
    <ind:pattern operation="pattern match">^[\s]*(?!#)security[\s]+.*(share)</ind:pattern>
    <ind:instance operation="greater than or equal" datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>