Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 1998 22:15:22 +0000
From:      Niall Smart <rotel@indigo.ie>
To:        Luigi Rizzo <luigi@labinfo.iet.unipi.it>, chanders@timing.com (Craig Anderson)
Cc:        freebsd-hackers@FreeBSD.ORG, brhall@timing.com
Subject:   Re: Help with passing fd on FreeBSD
Message-ID:  <199808282115.WAA01126@indigo.ie>
In-Reply-To: <199808281628.SAA05374@labinfo.iet.unipi.it>; Luigi Rizzo <luigi@labinfo.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On Aug 28,  6:28pm, Luigi Rizzo wrote:
} Subject: Re: Help with passing fd on FreeBSD
> > Oops, I turned the page and the BSD4.3+ example looks like the FreeBSD
> > struct.  The Stevens book appears to have a good example.
> >
> > > Can someone give me pointers on passing open file descriptors on FreeBSD?
> 
> still, this looks to me one of the most obscure interfaces in the OS.
> Does any real application use that ?

I can imagine several uses for it, one of the most useful being
a centralised authentication daemon which passes out raw sockets,
sockets < 1024 etc to appropriately authorised processes.

fhttpd also uses it a lot.

Niall

-- 
Niall Smart, rotel@indigo.ie.
Amaze your friends and annoy your enemies:
echo '#define if(x) if (!(x))' >> /usr/include/stdio.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808282115.WAA01126>