Hi,

On Mon, Apr 19, 2010 at 03:45:05PM +0200, Carl Fredrik Hammar wrote:
> On Sun, Apr 18, 2010 at 04:27:28AM +0200, olafbuddenha...@gmx.net wrote:

> > Presently we don't have any mechanisms for server-side per-process
> > handling though. (Again, beyond chroot.) While at some point we
> > mentioned the possibility of introducing one, by allowing clients to
> > give their PID voluntarily (no idea in what context we mentioned this),
> 
> We discussed this as a means to implement /proc/self.

Ah, right :-)

> > I'm still not convinced that this is a good idea in general. Private
> > namespaces always make things somewhat intransparent IMHO.
> 
> I agree, unless perhaps it is obviously private, e.g. /proc/self.

Well, this is not really different from the magic lookups implemented so
far (TTY, FDs) -- so the obvious thing to do is just adding another
magic lookup type.

The difference with /proc/self is that the PID is kind of public; so it
*could* be handled server-side, if we really wished... But as long as
/proc/self is the only use case, it's probably not worthwhile.

-antrik-


Reply via email to