diff options
Diffstat (limited to 'debian/patches-applied/pam_unix_thread-safe_save_old_password.patch')
-rw-r--r-- | debian/patches-applied/pam_unix_thread-safe_save_old_password.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches-applied/pam_unix_thread-safe_save_old_password.patch b/debian/patches-applied/pam_unix_thread-safe_save_old_password.patch new file mode 100644 index 00000000..c5d578b6 --- /dev/null +++ b/debian/patches-applied/pam_unix_thread-safe_save_old_password.patch @@ -0,0 +1,21 @@ +Patch to keep save_old_password() thread-safe when called by the PAM +module, since nothing blocks other threads from calling getpwnam in +parallel + +Authors: Steve Langasek <vorlon@debian.org> + +Upstream status: to be submitted + +Index: pam.deb/modules/pam_unix/passverify.c +=================================================================== +--- pam.deb.orig/modules/pam_unix/passverify.c ++++ pam.deb/modules/pam_unix/passverify.c +@@ -653,7 +653,7 @@ + fclose(opwfile); + + if (!found) { +- pwd = getpwnam(forwho); ++ pwd = pam_modutil_getpwnam(pamh, forwho); + if (pwd == NULL) { + err = 1; + } else { |