Hi!

Am 24.03.2004 um 19:48 schrieb Eamon Walsh:


On the server side, in os/access.c, is a function LocalClientCred() that
you can use to get the UID and GID of a local client. This function
could be extended to return the PID as well since the structure returned
by the SO_PEERCRED sockopt has the PID in it.

It probably only works for UNIX domain sockets. I never heard about about TCP/IP-Sockets transfering stuff like UID/GID or the PID during communication. Using the ident protocol could be an option to retrieve the UID but it does not reveal the PID.


73, Mario

_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to