[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1208027757.28187.25.camel@x61.ebiederm.org>
Date: Sat, 12 Apr 2008 12:15:57 -0700
From: "Eric W. Biederman" <ebiederm@...ssion.com>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Al Viro <viro@...IV.linux.org.uk>, sukadev@...ibm.com,
Andrew Morton <akpm@...l.org>, serue@...ibm.com,
matthltc@...ibm.com, Pavel Emelyanov <xemul@...nvz.org>,
Containers <containers@...ts.osdl.org>,
linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: Multiple instances of devpts
On Sat, 2008-04-12 at 11:54 -0700, H. Peter Anvin wrote:
> Al Viro wrote:
> >
> > Why not simply allow independent instances of devpts and be done with that?
>
> In particular:
>
> /dev/ptmx can be a symlink ptmx -> pts/ptmx, and we add a ptmx instance
> inside the devpts filesystem. Each devpts filesystem is responsible for
> its own pool of ptys, with own numbering, etc.
>
> This does mean that entries in /dev/pts are more than just plain device
> nodes, which they are now (you can cp -a a device node from /dev/pts
> into another filesystem and it will still "just work"), but I doubt this
> actually matters to anyone. If anyone cares, now I guess would be a
> good time to speak up.
Agreed. That is another legitimate path. And if all you care about is
isolation and not dealing with the general class of problems with the
global device number to device mapping that is sane. I know we have
several other virtual devices that we tend to care about but ptys are
the real world pain point.
Further I don't see any conflict with the generalizing devpts in this
manner (so you only see a subset of the ptys) and then later adding a
namespace that deals with the whole device number to device mapping.
Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists