]> granicus.if.org Git - linux-pam/commit
pam_pwhistory: Always record the old password even when root changes it.
authorTomas Mraz <tmraz@fedoraproject.org>
Mon, 28 May 2012 18:24:17 +0000 (20:24 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 28 May 2012 18:24:17 +0000 (20:24 +0200)
commit585f6c06b2d3574935ed62c3084f2aadd6d1defb
tree72664ccbc33832b7a8a678ae7515f1aad786cac7
parentddf3ac65b547f331400d235e64a1dddce8d42155
pam_pwhistory: Always record the old password even when root changes it.

modules/pam_pwhistory/pam_pwhistory.c (pam_sm_chauthtok): Use the UID of
the process instead of the target user UID (same as in pam_cracklib) to
check for root. Always record old password.
modules/pam_pwhistory/pam_pwhistory.c