Date: Wed, 22 Sep 1999 15:33:44 +0200 From: Marcel Moolenaar <marcel@scc.nl> To: hackers@FreeBSD.org Subject: Re: Domain sockets and chroot Message-ID: <37E8DAB8.B7F50BA9@scc.nl> References: <37E8D481.5A8C484A@cequrux.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Graham Wheeler wrote: > The server creates a domain socket to listen for requests with the > path /cage/tmp/server. The client runs chrooted in the /cage directory, > and creates a domain socket /tmp/client.<pid>. It sends a request to > the server with a sendto() specifying the socket address /tmp/server. > The server received the request okay, but gets the sender socket address > /tmp/client.<pid> ; i.e. it is the chrooted view of the client socket. > If it tries to send back a response, it fails (no such file or > directory). What about? cd /cage ln -s / cage And let the client specify /cage/tmp/client.<pid> -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ The FreeBSD project mailto:marcel@FreeBSD.org 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?37E8DAB8.B7F50BA9>