upstream: setproctitle(3) to identify sshd-session when its

acting as a post- authentication monitor; ok dtucker@

OpenBSD-Commit-ID: a3c36a005a61ccaeb974afd7b9290b826e1620ba
This commit is contained in:
2026-07-21 15:22:56 +10:00
committed by Damien Miller
parent e3bdc26895
commit addd12a5e4
+3 -1
View File
@@ -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.