From addd12a5e439f284854aaaa068b7c1947c24613a Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Thu, 9 Jul 2026 02:20:19 +0000 Subject: [PATCH] upstream: setproctitle(3) to identify sshd-session when its acting as a post- authentication monitor; ok dtucker@ OpenBSD-Commit-ID: a3c36a005a61ccaeb974afd7b9290b826e1620ba --- sshd-session.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sshd-session.c b/sshd-session.c index be30c8d70..06a72daaf 100644 --- a/sshd-session.c +++ b/sshd-session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshd-session.c,v 1.24 2026/06/14 03:59:34 djm Exp $ */ +/* $OpenBSD: sshd-session.c,v 1.25 2026/07/09 02:20:19 djm Exp $ */ /* * SSH2 implementation: * Privilege Separation: @@ -1244,6 +1244,8 @@ main(int ac, char **av) /* Now user is authenticated */ + setproctitle("%s [postauth]", authctxt->user); + /* * Cancel the alarm we set to limit the time taken for * authentication.