]> granicus.if.org Git - linux-pam/commit
pam_lastlog: Limit lastlog file use by LASTLOG_UID_MAX option in login.defs.
authorTomas Mraz <tmraz@fedoraproject.org>
Tue, 11 Dec 2018 08:08:20 +0000 (09:08 +0100)
committerTomas Mraz <tmraz@fedoraproject.org>
Thu, 20 Dec 2018 12:54:17 +0000 (13:54 +0100)
commit1daa323234982df4d7bbb8a13d4eb447106657d1
treedb1bd94f31801dfc86eae8ac41d584c2b09017d8
parent00b38702c70ad3847a2b3d38930a6a390df81645
pam_lastlog: Limit lastlog file use by LASTLOG_UID_MAX option in login.defs.

* modules/pam_lastlog/pam_lastlog.8.xml: Add the documentation of the
  LASTLOG_UID_MAX option.
* modules/pam_lastlog/pam_lastlog.c: New function get_lastlog_uid_max().
  (last_login_date): Check the uid against the get_lastlog_uid_max().
  (pam_authenticate): Likewise.
modules/pam_lastlog/pam_lastlog.8.xml
modules/pam_lastlog/pam_lastlog.c