'Ensure check detects Pam config files that non-root users can edit.'

def testPamConfigPermissions(self):

    data = [self.CreateStat('/etc/pam.d/hit-123', 50, 0, 33184), self.CreateStat('/etc/pam.d/hit-234', 0, 60, 16895), self.CreateStat('/etc/pam.d/no-hit-123', 0, 6000, 33056), self.CreateStat('/etc/pam.d/no-hit-234', 0, 0, 33184), self.CreateStat('/etc/pam.d/hit-345', 70, 0, 33200)]
    results = self.GenResults(['LinuxPamConfigs'], [data])
    check_id = 'PAM-CONFIG-FILES-WRITABLE-BY-NON-ROOT-USER'
    sym = 'Found:    Files    or    folders    in    Pam    configuration    can    be    modified    by    non-privileged    users.'
    found = ['/etc/pam.d/hit-123    user:    50,    group:    0,    mode:    -rw-r-----', '/etc/pam.d/hit-234    user:    0,    group:    60,    mode:    drwxrwxrwx', '/etc/pam.d/hit-345    user:    70,    group:    0,    mode:    -rw-rw----']
    self.assertCheckDetectedAnom(check_id, results, sym, found)
