Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754683AbYHBIyz (ORCPT ); Sat, 2 Aug 2008 04:54:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752323AbYHBIys (ORCPT ); Sat, 2 Aug 2008 04:54:48 -0400 Received: from wavehammer.waldi.eu.org ([82.139.201.20]:34551 "EHLO wavehammer.waldi.eu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752280AbYHBIyr (ORCPT ); Sat, 2 Aug 2008 04:54:47 -0400 Date: Sat, 2 Aug 2008 10:54:43 +0200 From: Bastian Blank To: "H. Peter Anvin" Cc: "Eric W. Biederman" , Greg KH , linux-kernel@vger.kernel.org, Containers , Alan Cox , Pavel Emelyanov Subject: Re: Per-instance devpts Message-ID: <20080802085443.GA7817@wavehammer.waldi.eu.org> Mail-Followup-To: Bastian Blank , "H. Peter Anvin" , "Eric W. Biederman" , Greg KH , linux-kernel@vger.kernel.org, Containers , Alan Cox , Pavel Emelyanov References: <20080412172933.GA19295@us.ibm.com> <1208027215.28187.17.camel@x61.ebiederm.org> <48935205.3090807@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <48935205.3090807@zytor.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1270 Lines: 33 On Fri, Aug 01, 2008 at 11:12:21AM -0700, H. Peter Anvin wrote: > 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.) On Debian based systems /dev/ptmx is 0666 root.root. But the gid of tty is already supplied for devpts. > 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. Hmm. Several possibilities: - Change the filesysteme name and the old name remains usable with /dev/ptmx. Problem: You could mount the filesystem with the old name within a container. - Make the first mounted one special. Problem: Will not survive a umount/mount cycle. But this would be not the case anyway. But you are sure, none of them is a pretty solution. Bastian -- I'm a soldier, not a diplomat. I can only tell the truth. -- Kirk, "Errand of Mercy", stardate 3198.9 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/