From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932800AbcFBUjT (ORCPT ); Thu, 2 Jun 2016 16:39:19 -0400 Received: from terminus.zytor.com ([198.137.202.10]:42838 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932171AbcFBUjR (ORCPT ); Thu, 2 Jun 2016 16:39:17 -0400 Subject: Re: [PATCH tty-next] devpts: Make each mount of devpts an independent filesystem. To: "Eric W. Biederman" , Linus Torvalds References: <87oa95gevf.fsf_-_@x220.int.ebiederm.org> <87mvoo8h3d.fsf@x220.int.ebiederm.org> <87fuug5i6r.fsf_-_@x220.int.ebiederm.org> <874mabt3df.fsf_-_@x220.int.ebiederm.org> <20160506193547.GA30024@kroah.com> <572CF43D.2020708@hurleysoftware.com> <20160506195459.GB27790@kroah.com> <878tyn4nis.fsf_-_@x220.int.ebiederm.org> <87porzuys7.fsf@x220.int.ebiederm.org> Cc: Greg KH , Peter Hurley , Andy Lutomirski , security@debian.org, "security@kernel.org" , Al Viro , "security@ubuntu.com >> security" , Serge Hallyn , Willy Tarreau , Aurelien Jarno , One Thousand Gnomes , Jann Horn , Linux Kernel Mailing List , Jiri Slaby , Florian Weimer , Konstantin Khlebnikov From: "H. Peter Anvin" Message-ID: <94ee92fa-b07b-af9f-c631-18e96a0a465c@zytor.com> Date: Thu, 2 Jun 2016 13:36:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <87porzuys7.fsf@x220.int.ebiederm.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/02/16 13:22, Eric W. Biederman wrote: > > The problem with lookup_one_len_unlocked is that it still calls > inode_permission. > > As per previous discussions we don't want the path based permission > checks involved in that lookup. > Is it that we don't *want* it, or that we don't *need* it? In the latter case, we could just do whatever makes the code simpler, no? -hpa