This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: sun_path for accept()'ed sockets
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: Re: sun_path for accept()'ed sockets
- From: Wolfgang Sourdeau <wolfgang at iNsu dot com>
- Date: Tue, 9 May 2000 18:30:03 -0400 (EDT)
- Cc: glibc-linux at ricardo dot ecn dot wfu dot edu
- References: <20000509190450.71A0522002@wolfgang.insu.com>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Wolfgang> So my questions are: - how can you find out the UID of
Wolfgang> the client-process with the GNU C Library? - is there a
Wolfgang> way to find out the PID as well in a portable way ?
All right, I found it.
getsockopt (socket_fd, SOL_SOCKET, (struct ucred *), (socklen_t *))
was the correct answer.
Wolfgang