tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Remote pid with SOCK_DGRAM local socket



On May 12, 2011, at 11:22 58PM, der Mouse wrote:

>> I need to get the PID from the remote process when using a SOCK_DGRAM
>> local socket.  This seems impossible right now.  Did I miss
>> something?
> 
>> kern/39108 introduces LOCAL_PROC/SCM_PROC to fix that.  Any reason
>> why nobody committed it?
> 
> I can only speculate on the latter question.  But it seems to me this
> should be part of SCM_CREDS.  Surely it wouldn't be that hard to
> version the structure and option to do that?  Or is there some reason
> _I_'m missing why that would be a Bad Thing?

What if more than one process has an open fd to the socket?  Which should
it give?  The creating process?  It might not exist any more.

                --Steve Bellovin, https://www.cs.columbia.edu/~smb







Home | Main Index | Thread Index | Old Index