socket -> UID

Georg Hessmann hessmann at unipas.fmi.uni-passau.de
Sun Jan 14 03:50:18 AEST 1990


Two processes communicate with the help of a socket. 
(Socket has the type PF_INET, SOCK_STREAM)
The first process runs as a background demon (using inetd) and waits
for incoming messages from the second process.

Problem:
How can the first process obtain the UID and GID of the second process 
right from the socket without any extra message from the second process.

We want to disable/enable services of process one for certain 
UID's and GID's without changing the source code of the second process.

Thanks, Georg.
-- 
  hessmann at unipas.fmi.uni-passau.de		hessmann at unipas.uucp



More information about the Comp.unix.wizards mailing list