Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754392AbcDKO7y (ORCPT ); Mon, 11 Apr 2016 10:59:54 -0400 Received: from [198.137.202.10] ([198.137.202.10]:41124 "EHLO mail.zytor.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752303AbcDKO7x (ORCPT ); Mon, 11 Apr 2016 10:59:53 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <878u0s3orx.fsf_-_@x220.int.ebiederm.org> <1459819769-30387-1-git-send-email-ebiederm@xmission.com> <87twjcorwg.fsf@x220.int.ebiederm.org> <20160409140909.42315e6d@lxorguk.ukuu.org.uk> <83FE8CD2-C0A2-4ADB-AEBD-8DD89AD4F88A@zytor.com> <87bn5ij0x1.fsf@x220.int.ebiederm.org> <78205895-E11D-417F-91DC-4BCA0B61A122@zytor.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PATCH 01/13] devpts: Teach /dev/ptmx to find the associated devpts via path lookup From: "H. Peter Anvin" Date: Mon, 11 Apr 2016 07:48:28 -0700 To: Linus Torvalds , Andy Lutomirski CC: security@debian.org, security@kernel.org, Al Viro , "security@ubuntu.com >> security" , Peter Hurley , "Eric W. Biederman" , Serge Hallyn , Willy Tarreau , Aurelien Jarno , One Thousand Gnomes , Jann Horn , Greg KH , Linux Kernel Mailing List , Jiri Slaby , Florian Weimer Message-ID: <186305CD-6D16-494A-B76E-299E1A85CF7A@zytor.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 884 Lines: 21 On April 9, 2016 6:27:36 PM PDT, Linus Torvalds wrote: >On Apr 9, 2016 5:45 PM, "Andy Lutomirski" wrote: >> >> >> What we *do* want to do, though, is to prevent the following: > >I don't see the point. Why do you bring up this insane scenario that >nobody >can possibly care about? > >So you actually have any reason to believe somebody does that? > >I already asked about that earlier, and the silence was deafening. > > Linus Here is an entire different approach, I don't know if it is sane or not: when *mounting* the devpts filesystem, it could automagically create the bins mount for ptmx in the parent of its mount point. Presumably the would be a mount option to disable that behavior. Does anyone see an obvious problem with that? -- Sent from my Android device with K-9 Mail. Please excuse brevity and formatting.