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:
+3
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user