[openssh-commits] [openssh] 01/03: upstream: When ForwardX11Timeout=0, explicitly ask for a xauth
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Nov 27 09:34:10 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 6af3afdb292385b08fb9cd7e3e9b232e76d1ceda
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Thu Nov 26 21:51:26 2026 +0000
upstream: When ForwardX11Timeout=0, explicitly ask for a xauth
cookie that doesn't expire. Prevents some fail-open behaviour because xauth
by default will make one that does expire.
Anthropic ANT-2026-GJIF7KJI
OpenBSD-Commit-ID: d3d52803f8f4530156aa950406066c1796541054
---
clientloop.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/clientloop.c b/clientloop.c
index 54d7a6cf6..2ee3efb69 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clientloop.c,v 1.430 2026/11/25 08:26:59 djm Exp $ */
+/* $OpenBSD: clientloop.c,v 1.431 2026/11/26 21:51:26 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -354,9 +354,14 @@ client_x11_get_proto(struct ssh *ssh, const char *display,
}
if (timeout == 0) {
- /* auth doesn't time out */
+ /*
+ * auth doesn't time out. This must be requested
+ * explicitly: without a "timeout" argument,
+ * xauth(1) asks for a cookie that the X server
+ * purges after 60s of disuse.
+ */
xasprintf(&cmd, "%s -f %s generate %s %s "
- "untrusted 2>%s",
+ "untrusted timeout 0 2>%s",
xauth_path, xauthfile, display,
SSH_X11_PROTO, _PATH_DEVNULL);
} else {
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list