"User child pid" logging

This is a discussion on "User child pid" logging within the OpenSSH Development forums, part of the Networking and Network Related category; --===============1457972524== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Type: text/...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-21-2005
Claes Leufven
 
Posts: n/a
Default "User child pid" logging

--===============1457972524==
Content-Type: multipart/signed; boundary="=-=-=";
micalg=pgp-sha1; protocol="application/pgp-signature"

--=-=-=
Content-Type: text/plain; charset=latin-iso8859-1
Content-Transfer-Encoding: quoted-printable

Hi!

It would be easier to trace a connection in the logs if sshd reported
the change of pid with LogLevel set to verbose instead of debug2. Is
it possible to have it changed?

Regards
Claes Leufv=E9n

Here is a patch for it:

=2D-- sshd.c_orig 2005-11-21 10:51:08.000000000 +0100
+++ sshd.c 2005-11-21 10:51:11.000000000 +0100
@@ -652,7 +652,7 @@
if (pmonitor->m_pid =3D=3D -1)
fatal("fork of unprivileged child failed");
else if (pmonitor->m_pid !=3D 0) {
=2D debug2("User child is on pid %ld", (long)pmonitor->m_pid);
+ verbose("User child is on pid %ld", (long)pmonitor->m_pid);
close(pmonitor->m_recvfd);
buffer_clear(&loginmsg);
monitor_child_postauth(pmonitor);

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQBDgZ5J+5SV1+pdBU0RAl9FAJ9vxsUh0ySuYXKomY8Isv R+tovo7wCfRGfi
QQoQ4YVX9M2bIv9/GKx0oiY=
=p82a
-----END PGP SIGNATURE-----
--=-=-=--


--===============1457972524==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev

--===============1457972524==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0