<def-group>
  <definition class="compliance" id="module_useradmin_accounts_home_perms" version="1">
    <metadata>
      <title>Set default permissions for new user home directories.</title>
      <affected family="unix">
        <product>Webmin</product>
      </affected>
      <description>New users created through the UserAdmin Webmin module 
	  must have the default permissions of 750 applied to their home directory when created.</description>
    </metadata>
    <!-- homedir_perms is configured in /etc/webmin/config ... -->
    <criteria operator="AND">
      <criterion comment="Installed operating system is part of the unix family"
      test_ref="test_unix_family" />
	  <criterion comment="Set default permissions for new user home directories."
	  test_ref="test_webmin_module_useradmin_accounts_home_perms" />
   </criteria>
  </definition>
  
  <ind:textfilecontent54_test check="all" comment="Check homedir_perms is configured in /etc/webmin/config" 
  id="test_webmin_module_useradmin_accounts_home_perms" version="1">
    <ind:object object_ref="object_webmin_module_useradmin_accounts_home_perms" />
  </ind:textfilecontent54_test>
  <ind:textfilecontent54_object 
  id="object_webmin_module_useradmin_accounts_home_perms" version="1">
    <ind:filepath>/etc/webmin/useradmin/config</ind:filepath>
    <ind:pattern
    operation="pattern match">^homedir_perms=0750$</ind:pattern>
    <ind:instance datatype="int">1</ind:instance>
  </ind:textfilecontent54_object>

</def-group>
