summaryrefslogtreecommitdiff
path: root/debian/patches-applied/pam_unix_thread-safe_save_old_password.patch
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2008-07-26 19:58:55 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2019-01-03 17:01:55 -0800
commit61299e8db666a875e7468aa4b57bb71ae3dd9e30 (patch)
tree13e6cad74a8993316b814d2eda5936fab4457694 /debian/patches-applied/pam_unix_thread-safe_save_old_password.patch
parentfe177a4cc394567465a75ed4899e0f67024a52fb (diff)
fix patch names so it's clear these are all for pam_unix
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.patch21
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 {