Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!rpi!julius.cs.uiuc.edu!usc!jarthur!uunet!decwrl!llustig!objy!prefect!peter From: peter@prefect.Berkeley.EDU (Peter Moore) Newsgroups: comp.unix.wizards Subject: Authenticating Unix Domain sockets. Message-ID: <1991Jan29.063539.2169@objy.com> Date: 29 Jan 91 06:35:39 GMT Sender: news@objy.com Reply-To: peter@objy.com Organization: Objectivity Inc. Lines: 17 What I would like is a guaranteed way of finding out the uid of a process that just connected to me using local (same machine) IPC. I have vague memory of special ioctl or connect argument that would give me the uid of the connecting process when using Unix domain sockets. But I have RTFM (actually greped the man pages) and haven't found any sign of such a beast. Normally I would have chalked this up to youthful hallucinations , but I also didn't find the magic method to pass open file descriptors over Unix domain sockets, and I KNOW that used to be in at least 4.3 BSD Unix. So, does anyone know of such a beast? Authentication of IPC of any sort on almost any Unix would be of interest. Peter Moore Objectivity Inc. peter@objy.com