From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755549AbcDLBfN (ORCPT ); Mon, 11 Apr 2016 21:35:13 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57204 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752987AbcDLBfL (ORCPT ); Mon, 11 Apr 2016 21:35:11 -0400 Date: Tue, 12 Apr 2016 02:34:36 +0100 From: Al Viro To: "Eric W. Biederman" Cc: Linus Torvalds , "H. Peter Anvin" , Andy Lutomirski , security@debian.org, "security@kernel.org" , "security@ubuntu.com >> security" , Peter Hurley , Serge Hallyn , Willy Tarreau , Aurelien Jarno , One Thousand Gnomes , Jann Horn , Greg KH , Linux Kernel Mailing List , Jiri Slaby , Florian Weimer Subject: Re: [PATCH 01/13] devpts: Teach /dev/ptmx to find the associated devpts via path lookup Message-ID: <20160412013436.GN25498@ZenIV.linux.org.uk> References: <877fg3emy7.fsf@x220.int.ebiederm.org> <87oa9fbsag.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87oa9fbsag.fsf@x220.int.ebiederm.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 11, 2016 at 07:10:47PM -0500, Eric W. Biederman wrote: > Actually for me this is about keeping the semantics simpler, and coming > up with a higher performance implementation. > > A dentry that does an automount is already well defined. > > Making the rule that accessing /dev/ptmx causes an automount of > /dev/pts/ptmx on top of the device node at /dev/ptmx is really simple, > with no special games. It also makes it more obvious to userspace what > is going on. AKA allows userspace to know which superblock does an open > ptmx master tty belongs to (and it happens in a backwards and forwards > compatible way). _What_ dentry? Which filesystem would that be done to? Whatever we have on /dev? Or we suddenly get the fucking dentry operations change when dentry is attached to magical cdev inode?