Please find attached strace output while testing with and without pam_permit.so on CentOS 5 You can see
readlink("/proc/self/exe", 0x2b3915612cc0, 4096) = -1 EACCES (Permission denied)
and
sendto(29, "K\0\0\4\377\25\4#28000Access denied for u"..., 79, MSG_DONTWAIT, NULL, 0) = 79 shutdown(29, 2 /* send and receive */) = 0 close(29) = 0 futex(0x12f6d64, FUTEX_WAIT_PRIVATE, 29, NULL
Please find attached strace output while testing with and without pam_permit.so on CentOS 5
You can see
readlink( "/proc/ self/exe" , 0x2b3915612cc0, 4096) = -1 EACCES (Permission denied)
and
sendto(29, "K\0\0\ 4\377\25\ 4#28000Access denied for u"..., 79, MSG_DONTWAIT, NULL, 0) = 79
shutdown(29, 2 /* send and receive */) = 0
close(29) = 0
futex(0x12f6d64, FUTEX_WAIT_PRIVATE, 29, NULL