aboutsummaryrefslogtreecommitdiff
path: root/debian/patches-applied/pam_unix_fix_sgid_shadow_auth.patch
diff options
context:
space:
mode:
authorSteve Langasek <vorlon@debian.org>2021-12-06 11:11:31 -0800
committerSteve Langasek <vorlon@debian.org>2021-12-06 11:11:31 -0800
commita3d540fc9aab544f53eb4d2035454a12820bd02d (patch)
treec0ff911dfb5b5d5e719c747165c526681420cb79 /debian/patches-applied/pam_unix_fix_sgid_shadow_auth.patch
parentea04efa24985743014da9dd22c0581cbaef82ede (diff)
parent17efd306e797a3fe46564896de31583c2c99f338 (diff)
downloadpam-a3d540fc9aab544f53eb4d2035454a12820bd02d.tar.gz
pam-a3d540fc9aab544f53eb4d2035454a12820bd02d.tar.bz2
pam-a3d540fc9aab544f53eb4d2035454a12820bd02d.zip
pam (1.4.0-11) unstable; urgency=medium
* Whitespace fixes in debconf templates. [ Sergio Durigan Junior ] * d/p/pam_env-allow-environment-files-without-EOL-at-EOF.patch: Allow /etc/environment files without EOL at EOF. In other words, allow files without a newline at the end. (LP: #1953201) [dgit import unpatched pam 1.4.0-11]
Diffstat (limited to 'debian/patches-applied/pam_unix_fix_sgid_shadow_auth.patch')
-rw-r--r--debian/patches-applied/pam_unix_fix_sgid_shadow_auth.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches-applied/pam_unix_fix_sgid_shadow_auth.patch b/debian/patches-applied/pam_unix_fix_sgid_shadow_auth.patch
new file mode 100644
index 00000000..0ce85eb7
--- /dev/null
+++ b/debian/patches-applied/pam_unix_fix_sgid_shadow_auth.patch
@@ -0,0 +1,25 @@
+Revert upstream change that prevents pam_unix from working with sgid
+shadow applications.
+
+Authors: Steve Langasek <vorlon@debian.org>
+
+Upstream status: to be submitted (and debated...)
+
+Index: pam/modules/pam_unix/passverify.c
+===================================================================
+--- pam.orig/modules/pam_unix/passverify.c
++++ pam/modules/pam_unix/passverify.c
+@@ -198,11 +198,11 @@
+ * ...and shadow password file entry for this user,
+ * if shadowing is enabled
+ */
++ *spwdent = pam_modutil_getspnam(pamh, name);
+ #ifndef HELPER_COMPILE
+- if (geteuid() || SELINUX_ENABLED)
++ if (*spwdent == NULL && (geteuid() || SELINUX_ENABLED))
+ return PAM_UNIX_RUN_HELPER;
+ #endif
+- *spwdent = pam_modutil_getspnam(pamh, name);
+ if (*spwdent == NULL || (*spwdent)->sp_pwdp == NULL)
+ return PAM_AUTHINFO_UNAVAIL;
+ }