From mboxrd@z Thu Jan 1 00:00:00 1970 From: ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org (Eric W. Biederman) Subject: Re: [RFC] fix devpts mount behavior Date: Sat, 28 Jan 2012 12:52:00 -0800 Message-ID: References: <20120124000517.GA28878@sergelap> <20120124002555.GA29534@sergelap> <20120124010758.GJ23916@ZenIV.linux.org.uk> <20120124220247.GA26353@hallyn.com> <20120124231601.GA4470@sergelap> <20120128195103.GA11299@sergelap> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120128195103.GA11299@sergelap> (Serge Hallyn's message of "Sat, 28 Jan 2012 13:51:03 -0600") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Serge Hallyn Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Kay Sievers , Dave Hansen , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Al Viro , Andy Whitcroft , sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org, Linus Torvalds List-Id: containers.vger.kernel.org Serge Hallyn writes: > Quoting Kay Sievers (kay.sievers-tD+1rO4QERM@public.gmane.org): >> We might also thing about changing /sys/class/tty/ptmx/, and have the >> kernel create the symlink? The loops through userspace to setup >> default kernel stuff are kind of crazy ... >> >> Kay > > Hi Kay, > > sorry, there is something I'm missing here. Without a target kobj > to link to, how would we go about telling the kernel that /dev/ptmx > should be a symlink to /dev/pts/ptmx? Is there a way to do that? There is precedent in the /dev/fd symlinks, so I expect you want to look and see where the configuration for that comes from. Eric From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753133Ab2A1Utc (ORCPT ); Sat, 28 Jan 2012 15:49:32 -0500 Received: from out01.mta.xmission.com ([166.70.13.231]:52886 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752545Ab2A1Utb (ORCPT ); Sat, 28 Jan 2012 15:49:31 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: Serge Hallyn Cc: Kay Sievers , "Serge E. Hallyn" , containers@lists.linux-foundation.org, Dave Hansen , linux-kernel@vger.kernel.org, Andy Whitcroft , sukadev@linux.vnet.ibm.com, Linus Torvalds , Al Viro Subject: Re: [RFC] fix devpts mount behavior References: <20120124000517.GA28878@sergelap> <20120124002555.GA29534@sergelap> <20120124010758.GJ23916@ZenIV.linux.org.uk> <20120124220247.GA26353@hallyn.com> <20120124231601.GA4470@sergelap> <20120128195103.GA11299@sergelap> Date: Sat, 28 Jan 2012 12:52:00 -0800 In-Reply-To: <20120128195103.GA11299@sergelap> (Serge Hallyn's message of "Sat, 28 Jan 2012 13:51:03 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-XM-SPF: eid=;;;mid=;;;hst=in01.mta.xmission.com;;;ip=98.207.153.68;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19tNgy1rPe4wqpWo8Hn8Vt9Ikt+vgiZZnY= X-SA-Exim-Connect-IP: 98.207.153.68 X-SA-Exim-Mail-From: ebiederm@xmission.com X-SA-Exim-Scanned: No (on in01.mta.xmission.com); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Serge Hallyn writes: > Quoting Kay Sievers (kay.sievers@vrfy.org): >> We might also thing about changing /sys/class/tty/ptmx/, and have the >> kernel create the symlink? The loops through userspace to setup >> default kernel stuff are kind of crazy ... >> >> Kay > > Hi Kay, > > sorry, there is something I'm missing here. Without a target kobj > to link to, how would we go about telling the kernel that /dev/ptmx > should be a symlink to /dev/pts/ptmx? Is there a way to do that? There is precedent in the /dev/fd symlinks, so I expect you want to look and see where the configuration for that comes from. Eric