From owner-freebsd-questions@FreeBSD.ORG Mon Feb 4 11:33:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1752916A418 for ; Mon, 4 Feb 2008 11:33:25 +0000 (UTC) (envelope-from bennett@cs.niu.edu) Received: from mp.cs.niu.edu (mp.cs.niu.edu [131.156.145.41]) by mx1.freebsd.org (Postfix) with ESMTP id E129B13C4EA for ; Mon, 4 Feb 2008 11:33:24 +0000 (UTC) (envelope-from bennett@cs.niu.edu) Received: from mp.cs.niu.edu (bennett@localhost [127.0.0.1]) by mp.cs.niu.edu (8.14.2/8.14.2) with ESMTP id m14BXNqU029487; Mon, 4 Feb 2008 05:33:23 -0600 (CST) Date: Mon, 4 Feb 2008 05:33:22 -0600 (CST) From: Scott Bennett Message-Id: <200802041133.m14BXMmW029486@mp.cs.niu.edu> To: freebsd-questions@freebsd.org, "Zane C.B." Cc: Subject: Re: unix domain socket security and PID retrieval X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 11:33:25 -0000 > On Mon, 4 Feb 2008 04:30:21 -0600 "Zane C.B." >wrote: >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 fork(3f). > >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 * **********************************************************************