]> granicus.if.org Git - linux-pam/commit
pam_limits: detect and ignore stale utmp entries
authorTomas Mraz <tmraz@fedoraproject.org>
Mon, 20 Jan 2014 16:12:53 +0000 (17:12 +0100)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 20 Jan 2014 16:12:53 +0000 (17:12 +0100)
commit4eb04f3974b9245e31a59b0910c7b81ac5bc0496
tree5e73d4af58a79bb79855741fa0b09598357176a6
parent2e62d5aea3f5ac267cfa54f0ea1f8c07ac85a95a
pam_limits: detect and ignore stale utmp entries

Original idea by Christopher Hailey

* modules/pam_limits/pam_limits.c (check_logins): Use kill() to
detect if pid of the utmp entry is still running and ignore the entry
if it is not.
modules/pam_limits/pam_limits.c