[5330] in bugtraq

home help back first fref pref prev next nref lref last post

Re: TCPwrappers race condition

daemon@ATHENA.MIT.EDU (der Mouse)
Fri Oct 3 02:07:20 1997

Date: 	Thu, 2 Oct 1997 22:14:51 -0400
Reply-To: der Mouse <mouse@RODENTS.MONTREAL.QC.CA>
From: der Mouse <mouse@RODENTS.MONTREAL.QC.CA>
To: BUGTRAQ@NETSPACE.ORG

> TCPwrappers do a getpeername() after bieng passed the socket
> descriptor from inetd.  On some OSs this can cause a problem, atleast
> on SCO.  [...if the FIN arrives before the getpeername(), "unknown"
> gets logged...]

> Unfortunately this is a design issue, TCPwrappers "cant" be fixed to
> do this without modification to inetd.

This is a kernel bug, I would say.  Just because the other end has
closed down its side of the connection is no excuse to throw away the
peer address information (or to refuse to deliver it to user-land,
which amounts to the same thing).

                                        der Mouse

                               mouse@rodents.montreal.qc.ca
                     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B

home help back first fref pref prev next nref lref last post