Per-instance devpts

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric W. Biederman <ebiederm@...>
Cc: <sukadev@...>, Andrew Morton <akpm@...>, <serue@...>, <matthltc@...>, Pavel Emelyanov <xemul@...>, Containers <containers@...>, <linux-kernel@...>, Alan Cox <alan@...>, Greg KH <greg@...>
Date: Friday, August 1, 2008 - 2:12 pm

Since the issue of PTY namespaces came up (and was rejected) back in 
April, I have thought a little bit about changing ptys to be tied 
directly into a devpts instance.  devpts would then be a "normal" 
filesystem, which can be mounted multiple times (or not at all).  pty's 
would then become private to a devpts instance.

This is what it would appear would have to change, and I'd like to get 
people's feeing for the user-space impact:

1. /dev/ptmx would have to change to a symlink, ptmx -> pts/ptmx.
2. Permissions on /dev/ptmx would not be persistent, and would have to
    be set via devpts mount options (unless they're 0666 root.tty, which
    would presumably be the default.)
3. The /proc/sys/kernel/pty limit would be global; a per-filesystem
    limit could be added on top or instead (presumably via a filesystem
    mount options.)

I worry #1 would have substantial user-space impact, but I don't see a 
way around it, since there would be no obvious way to associate 
/dev/ptmx with a filesystem.

	-hpa
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 0/4] Helper patches for PTY namespaces, Eric W. Biederman, (Sat Apr 12, 3:06 pm)
Per-instance devpts, H. Peter Anvin, (Fri Aug 1, 2:12 pm)
Re: Per-instance devpts, , (Sun Aug 3, 1:08 am)
Re: Per-instance devpts, Alan Cox, (Sun Aug 3, 8:04 am)
Re: Per-instance devpts, , (Sun Aug 3, 1:46 pm)
Re: Per-instance devpts, Alan Cox, (Sun Aug 3, 1:54 pm)
Re: Per-instance devpts, H. Peter Anvin, (Sun Aug 3, 7:31 am)
Re: Per-instance devpts, Bastian Blank, (Sat Aug 2, 4:54 am)
Re: Per-instance devpts, Dave Hansen, (Fri Aug 1, 3:23 pm)
Re: Per-instance devpts, H. Peter Anvin, (Fri Aug 1, 3:37 pm)
Re: Per-instance devpts, Al Viro, (Fri Aug 1, 3:35 pm)
Re: [PATCH 0/4] Helper patches for PTY namespaces, Serge E. Hallyn, (Sat Apr 12, 8:59 pm)
Multiple instances of devpts, H. Peter Anvin, (Sat Apr 12, 2:54 pm)
Re: Multiple instances of devpts, Eric W. Biederman, (Sat Apr 12, 3:15 pm)
Re: Multiple instances of devpts, H. Peter Anvin, (Sat Apr 12, 3:24 pm)
Re: Multiple instances of devpts, H. Peter Anvin, (Sat Apr 12, 3:30 pm)
Re: [PATCH 0/4] Helper patches for PTY namespaces, H. Peter Anvin, (Sat Apr 12, 2:09 pm)