vlock: introduce short delays after non-fatal PAM errors
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 24 Nov 2013 21:48:36 +0000 (01:48 +0400)
committerAlexey Gladkov <gladkov.alexey@gmail.com>
Mon, 25 Nov 2013 17:49:23 +0000 (21:49 +0400)
commit6e1eb7cd1809a02e67282f34791f6852ae9fe3e3
tree530a2cdd82c32f87a5a64051bd4a381dbea1d9bf
parent7bbf733d4c1d49f85df717198a699b7b97a82405
vlock: introduce short delays after non-fatal PAM errors

Add a short delay after PAM errors like PAM_AUTH_ERR that are likely
to be non-fatal, so that in case when they are fatal, there would be
a delay between continuous attempts that are doomed to fail.

For example, fatal PAM configuration errors like unreadable
/etc/pam.d/vlock file usually result to immediate PAM_AUTH_ERR,
the same error as returned by more likely authentication error
due to incorrect password.
src/vlock/auth.c