[openssh-commits] [openssh] 03/14: upstream: destroy the kerberos ticket cache with user rather than
git+noreply at mindrot.org
git+noreply at mindrot.org
Thu Nov 26 10:20:48 AEDT 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 8d51a6f3d933f85ceeaf68a4a4e9ab832c354c4a
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Wed Nov 25 20:07:42 2026 +0000
upstream: destroy the kerberos ticket cache with user rather than
root privileges. Avoids symlink tricks in shared directories
Anthropic ANT-2026-JFAJSWS7
OpenBSD-Commit-ID: 8a250bf4e30674811a456d91f3218bf2bf6c1f5d
---
auth-krb5.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/auth-krb5.c b/auth-krb5.c
index afdccb285..99d425431 100644
--- a/auth-krb5.c
+++ b/auth-krb5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-krb5.c,v 1.27 2026/10/30 02:31:35 djm Exp $ */
+/* $OpenBSD: auth-krb5.c,v 1.28 2026/11/25 20:07:42 djm Exp $ */
/*
* Kerberos v5 authentication and ticket-passing routines.
*
@@ -225,7 +225,9 @@ krb5_cleanup_proc(Authctxt *authctxt)
{
debug("krb5_cleanup_proc called");
if (authctxt->krb5_fwd_ccache) {
+ temporarily_use_uid(authctxt->pw);
krb5_cc_destroy(authctxt->krb5_ctx, authctxt->krb5_fwd_ccache);
+ restore_uid();
authctxt->krb5_fwd_ccache = NULL;
}
authctxt->krb5_ticket_file = NULL;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list