[openssh-commits] [openssh] 04/12: upstream: setproctitle(3) to identify sshd-session when its

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Jul 21 15:23:33 AEST 2026


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit addd12a5e439f284854aaaa068b7c1947c24613a
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Thu Jul 9 02:20:19 2026 +0000

    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.

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list