unix domain socket security and PID retrieval

Scott Bennett bennett at cs.niu.edu
Mon Feb 4 11:33:25 UTC 2008

>     On Mon, 4 Feb 2008 04:30:21 -0600 "Zane C.B." <v.velox at vvelox.net>
>Been starting to look into writing some stuff that uses unix domain
>sockets, but I've been running into the problem of figuring out what
>the calling PID is on the other end.
>Any suggestions on where I should begin to look?

     Sure.  Take a look at the man pages for fork(2), vfork(2), and
>As it currently stands, I am looking at doing this with perl.

     In that case, take a look at perlfork(1), too.

                                  Scott Bennett, Comm. ASMELG, CFIAG
* Internet:       bennett at cs.niu.edu                              *
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *

More information about the freebsd-questions mailing list