| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: Wrong UIDs reported in /proc/net/tcp |
| From: | Stephen Hemminger <shemminger@xxxxxxxx> |
| Date: | Thu, 18 Nov 2004 13:27:00 -0800 |
| Cc: | "Chad N. Tindel" <chad@xxxxxxxxxx>, netdev@xxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx |
| In-reply-to: | <20041118210307.GA9557@xxxxxxxxxxxxxxxxxxx> |
| Organization: | Open Source Development Lab |
| References: | <20041109205358.GA64015@xxxxxxxxxxxxxx> <E1CRdBr-0001P2-00@xxxxxxxxxxxxxxxxxxxxxxxx> <20041118190257.GA7084@xxxxxxxxxxxxxx> <20041118210307.GA9557@xxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Fri, 19 Nov 2004 08:03:07 +1100 Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote: > On Thu, Nov 18, 2004 at 02:02:57PM -0500, Chad N. Tindel wrote: > > > > OK, so just out of sheer morbid curiousity, I added an ioctl which will > > accept 4 parameters (the address/port pairs), and will return the user id > > associated with that socket. I also changed pidentd to call this ioctl > > instead of looking at /proc/net/tcp. This should theoretically get rid > > of all race conditions. > > Please show us the code of your ioctl. > > Have you tried netlink yet? Does it exhibit the same problem? It could also be the sockets are shared between processes with uid's or that the real/effective uid or different or even the uid is that of the original creator and the file was inherited across exec. |
| Previous by Date: | Re: Wrong UIDs reported in /proc/net/tcp, Herbert Xu |
|---|---|
| Next by Date: | [PATCH 2.6.9-rc2 1/1] S2io: fixes in free_shared_mem function, Koushik |
| Previous by Thread: | Re: Wrong UIDs reported in /proc/net/tcp, Herbert Xu |
| Next by Thread: | Re: Wrong UIDs reported in /proc/net/tcp, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |