[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: implementing bash's magic

From: Marcus Brinkmann
Subject: Re: implementing bash's magic
Date: Sun, 3 Nov 2002 23:34:39 +0100
User-agent: Mutt/1.4i

On Fri, Oct 18, 2002 at 06:20:34PM -0400, Roland McGrath wrote:
> The /dev/fd cases use magic with libc support old because that is the only
> sensical way to implement them.  For other features you can just use normal
> translators that do the work themselves.  i.e., to return a connected
> socket from open, they can get an io_restrict'd port to /servers/socket/N
> and call socket_create, socket_connect, etc., and return the port.

Yeah, sorry.  I was worrying about privileges, but io_restrict solves that
of course.  I frequently forget about its existence.  Its limitation is that
you might not get access to resources that way if the filesystem runs with
less privileges than you, but usually this is fixed by running the
filesystem with broad enough privileges of course.

Thanks for clearing that up.

`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]