autofs 5.1.8: ldap+kerberos leads to automount hang [patch]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Cross reference: https://bugs.launchpad.net/ubuntu/+source/autofs/+bug/1982219

I recently upgraded an Ubuntu system from 20.04 to 22.04 at which point
autofs stopped working.  `automount -d -m -v -f` would hang without
printing the maps.  After adding some debug statements I traced this to
an unbalanced pthread_mutex_lock()/unlock() in sasl_do_kinit_ext_cc() of
modules/cyrus-sasl.c.  The patch attached this email resolved the problem
for me.

Thanks,
James
diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c
index ae046e0..c0b4743 100644
--- a/modules/cyrus-sasl.c
+++ b/modules/cyrus-sasl.c
@@ -721,6 +721,9 @@ sasl_do_kinit_ext_cc(unsigned logopt, struct lookup_context *ctxt)
 
 	debug(logopt, "Kerberos authentication was successful!");
 
+	status = pthread_mutex_unlock(&krb5cc_mutex);
+	if (status)
+		fatal(status);
 	return 0;
 
 out_cleanup_def_princ:

[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux