Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4147549pxk; Tue, 8 Sep 2020 11:52:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoD3jaU1URuJz6jAdbjRuxe+xJweeJwA3rhjqfelDb0y4zTfDDmZDMYm4XnpcVsx/bRHys X-Received: by 2002:a50:a418:: with SMTP id u24mr365549edb.193.1599591172628; Tue, 08 Sep 2020 11:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599591172; cv=none; d=google.com; s=arc-20160816; b=UlimHF3NNhZQ9mhnAWj0DdIr9ZTQiymk9L13P4JGM0+XIDvk6K40AFVGB9Z2YHhj3Z LIJaP27u+Z7RQhVX5OcOfrOovDleNcylfgZ9ccBngQmvtZaOCeK7DTVvdMNf+W2WDKmC rz+iGuYZEL+MciVrYI/v9rqosSCsBMgluy/VhH6g3eKHlnmvm+IaRyUeQAs38ZGSrD3h T+EFfsxSFORQIcGOQE6t9QatTSsDb+eBdKzB4o7Add/HsoFQBpWtJk/D6FdLwMVHaWs7 EIuafWSVOli/3h3xUKLGWSgUQTI+5m45rVtyvCEWR3FzBI/pLGrpblzr4RmVAteziGTf BFGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dt2VQuiAxwA9NuDPBTJqbMP/LPhVJPkpXSc+zgzuKNo=; b=drJWt8KeYNINvegWKiTyJcV/0bETlMfh97dhun2ajChEiMvOadslUqyYl7TNieCpAj 3cXbczOZ8WpVyslNEi/6rRsTVO9k8lPlhYJjCQol6uLq+kDjPXpkrIhz5t11CJWmaGzl Rt3swQlw7x14HkQgcZe66mH2QkAqqUOHfGm45Pk8z5nEMzsU0neI154VldQ2KB9j5Z7q ZPbwpSTEFQ150sy7EsFqUpRQSZvGkegflgN2aTGKv/0eLlrXGNV6ecOseqjdUoVO7BFh JfnqCyq8Hhg+WbJrQ37ulN0ZFS1bjABMXH7HU1GAk/DT9D0qZ8RMMM6and7SLNs2Z/QU UjCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id si25si12984269ejb.431.2020.09.08.11.52.30; Tue, 08 Sep 2020 11:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731535AbgIHSvu (ORCPT + 99 others); Tue, 8 Sep 2020 14:51:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731211AbgIHSvK (ORCPT ); Tue, 8 Sep 2020 14:51:10 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D900C061573; Tue, 8 Sep 2020 11:51:10 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kFihG-00CnM8-KF; Tue, 08 Sep 2020 18:50:26 +0000 Date: Tue, 8 Sep 2020 19:50:26 +0100 From: Al Viro To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= Cc: linux-kernel@vger.kernel.org, Aleksa Sarai , Alexei Starovoitov , Andrew Morton , Andy Lutomirski , Christian Brauner , Christian Heimes , Daniel Borkmann , Deven Bowers , Dmitry Vyukov , Eric Biggers , Eric Chiang , Florian Weimer , James Morris , Jan Kara , Jann Horn , Jonathan Corbet , Kees Cook , Lakshmi Ramasubramanian , Matthew Garrett , Matthew Wilcox , Michael Kerrisk , Miklos Szeredi , Mimi Zohar , Philippe =?iso-8859-1?Q?Tr=E9buchet?= , Scott Shell , Sean Christopherson , Shuah Khan , Steve Dower , Steve Grubb , Tetsuo Handa , Thibaut Sautereau , Vincent Strubel , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [RFC PATCH v8 0/3] Add support for AT_INTERPRETED (was O_MAYEXEC) Message-ID: <20200908185026.GU1236603@ZenIV.linux.org.uk> References: <20200908075956.1069018-1-mic@digikod.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200908075956.1069018-1-mic@digikod.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 08, 2020 at 09:59:53AM +0200, Micka?l Sala?n wrote: > Hi, > > This height patch series rework the previous O_MAYEXEC series by not > adding a new flag to openat2(2) but to faccessat2(2) instead. As > suggested, this enables to perform the access check on a file descriptor > instead of on a file path (while opening it). This may require two > checks (one on open and then with faccessat2) but it is a more generic > approach [8]. Again, why is that folded into lookup/open/whatnot, rather than being an operation applied to a file (e.g. O_PATH one)?