[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openssh-unix-dev
Subject:    "User child is on pid"-logging
From:       Claes Leufven <rinsan () lysator ! liu ! se>
Date:       2005-12-08 13:54:17
Message-ID: 87k6efitiu.fsf () rei ! outherlimits ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi!

I sent a mail a while ago wondering if it was possible to change the
loglevel for the "User child is on pid"-message from debug2 to
verbose. It would make it easier to trace a connection in the logs
when privilege separation is used and sshd uses the user child pid to
report that the connection is closing . Is it possible to change this
or would it violate the privacy of the users?

Regards
Claes Leufvén

Here is a patch for the latest(20051208) snapshot of OpenSSH portable:

--- sshd.c-orig 2005-12-08 14:35:03.000000000 +0100
+++ sshd.c      2005-12-08 14:35:11.000000000 +0100
@@ -651,7 +651,7 @@
        if (pmonitor->m_pid == -1)
                fatal("fork of unprivileged child failed");
        else if (pmonitor->m_pid != 0) {
-               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);


[Attachment #5 (application/pgp-signature)]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic