netdev
[Top] [All Lists]

Re: Wrong UIDs reported in /proc/net/tcp

To: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Subject: Re: Wrong UIDs reported in /proc/net/tcp
From: "Chad N. Tindel" <chad@xxxxxxxxxx>
Date: Tue, 9 Nov 2004 17:43:37 -0500
Cc: netdev@xxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx
In-reply-to: <E1CRdBr-0001P2-00@xxxxxxxxxxxxxxxxxxxxxxxx>
References: <20041109205358.GA64015@xxxxxxxxxxxxxx> <E1CRdBr-0001P2-00@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
> > In our testing we've found some occurrences of identd reporting back the
> > wrong username for the owner of a socket.  We added some instrumentation
> 
> /proc/net/tcp is an obsolete interface.  It is inherently unreliable
> in that a record may be read using two read(2) calls.  Those two calls
> may end up looking at two different records.

Is it unreliable in that the wrong user id will get returned for an 
established socket?  How could such a thing happen?

Chad

<Prev in Thread] Current Thread [Next in Thread>