[Bug 238] New: sshd.pid file written AFTER key generation causes race condition

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu May 9 23:55:07 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=238

           Summary: sshd.pid file written AFTER key generation causes race
                    condition
           Product: Portable OpenSSH
           Version: 3.1p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sshd
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: libove at felines.org


The SSH Daemon writes its sshd.pid file only after it generates its ephemeral 
server key. This makes the amount of time between starting the daemon and the 
creation / update of the sshd.pid file variable, and can cause a race condition 
with e.g. /sbin/init.d scripts which start the daemon and then want to check to 
see that the start was successful.
Please move the sshd.pid create/update to happen before the generation of the 
ephemeral server key, so that the new SSH Daemon pid is written to the sshd.pid 
file very shortly after the process starts executing.
Thanks.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list