Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755581AbcDLBsq (ORCPT ); Mon, 11 Apr 2016 21:48:46 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:57242 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755389AbcDLBsq (ORCPT ); Mon, 11 Apr 2016 21:48:46 -0400 Date: Tue, 12 Apr 2016 02:47:59 +0100 From: Al Viro To: "Eric W. Biederman" Cc: "H. Peter Anvin" , Linus Torvalds , 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: <20160412014759.GO25498@ZenIV.linux.org.uk> References: <877fg3emy7.fsf@x220.int.ebiederm.org> <61F170A6-5A56-4BF5-BFB5-FC62AB6F3612@zytor.com> <87k2k3aadn.fsf@x220.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87k2k3aadn.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 Content-Length: 881 Lines: 20 On Mon, Apr 11, 2016 at 08:23:00PM -0500, Eric W. Biederman wrote: > Perhaps I am reading the code wrong but as I read it that information is > simply not available in get_super. Correct. For a very good reason - the same superblock can bloody well end up in many places; having it tied to _the_ mountpoint is just plain wrong. You know how it would look done right? a) mount --after support b) devpts containing both /ptmx and /pts/1,... c) mount --type devpts --after none /dev That's it. And this would be way, way more useful that overlay-style unions; it would *NOT* recurse into subdirectories. Just a search list done right... Not an option, unfortunately, since it obviously breaks userland setups - even if we go ahead and implement that kind of non-recursive unions. But if we had a chance to design it from scratch, that would've been an interesting option.