Re: unix socket connection tracking

From: Lukasz Stelmach
Date: Fri Apr 21 2006 - 09:35:22 EST


Jan Engelhardt wrote:
>> I feel dumb as never so please enlight me. Is ther a way to find out which
>> process is on the other end of a unix socket pointed by a specified fd in a process.
>
> getpeer*()

getpeername(2) (that is the only man page I've got)

That's not exactly what I want. Or even exactly not what I want. I want to learn
about sockets from a third person perspective. I've got a process which I can
strace(1), but nothing more, and I want to know who is it talking to.

--
ByÅo mi bardzo miÅo. Czwarta pospolita klÄska, [...]
>Åukasz< JuÅ nie katolicka lecz zÅodziejska. (c)PP

Attachment: signature.asc
Description: OpenPGP digital signature