Authenticating Unix Domain sockets.

Larry Wall lwall at jpl-devvax.JPL.NASA.GOV
Wed Jan 30 10:11:50 AEST 1991


In article <1991Jan29.063539.2169 at objy.com> peter at objy.com writes:
: 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.

What do you mean by "the" uid?  Given that the other end of a socket may
be open multiple times by multiple processes, there's no guarantee of
uniqueness.

To answer your question, apart from using a secure protocol or grodying
about in the kernel like fuser or ofiles, there isn't a way.

Larry Wall
lwall at jpl-devvax.jpl.nasa.gov



More information about the Comp.unix.wizards mailing list