<def-group>
  <definition class="compliance" id="display_login_attempts" version="1">
    <metadata>
      <title>Set Last Login/Access Notification</title>
      <affected family="unix">
        <platform>Red Hat Enterprise Linux 6</platform>
      </affected>
      <description>Configure the system to notify users of last login/access using pam_lastlog.</description>
      <reference source="swells" ref_id="20131025" ref_url="test_attestation" />
    </metadata>
    <criteria>
      <criterion comment="Conditions for pam_lastlog are satisfied" test_ref="test_display_login_attempts" />
    </criteria>
  </definition>

  <ind:textfilecontent54_test check="all" comment="check the configuration of /etc/pam.d/system-auth" id="test_display_login_attempts" version="1">
    <ind:object object_ref="obj_display_login_attempts" />
  </ind:textfilecontent54_test>

  <ind:textfilecontent54_object id="obj_display_login_attempts" version="1">
    <ind:filepath>/etc/pam.d/system-auth</ind:filepath>
    <ind:pattern operation="pattern match">^\s*session\s+(required|requisite)?\s+pam_lastlog.so[\s\w\d\=]+showfailed</ind:pattern>
    <ind:instance datatype="int" operation="equals">1</ind:instance>
  </ind:textfilecontent54_object>
</def-group>
