diff options
Diffstat (limited to 'debian/patches-applied')
-rw-r--r-- | debian/patches-applied/series | 1 | ||||
-rw-r--r-- | debian/patches-applied/thread-safe_save_old_password.patch | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches-applied/series b/debian/patches-applied/series index 1cd60c79..df46ff97 100644 --- a/debian/patches-applied/series +++ b/debian/patches-applied/series @@ -18,3 +18,4 @@ hurd_no_setfsuid PAM-manpage-section pam_env_ignore_garbage.patch -p2 autoconf.patch +thread-safe_save_old_password.patch diff --git a/debian/patches-applied/thread-safe_save_old_password.patch b/debian/patches-applied/thread-safe_save_old_password.patch new file mode 100644 index 00000000..cc3fc5e4 --- /dev/null +++ b/debian/patches-applied/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 <steve.langasek@canonical.com> + +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 { |