Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp727278imu; Thu, 13 Dec 2018 03:29:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/USr9R0CJaevlz77UrZ3lQ8pcHtPKn4Jeq18KXRImrmWj3DYmc4FAiHVYQ7FiOXI/wugCsg X-Received: by 2002:a65:6447:: with SMTP id s7mr21421383pgv.226.1544700595850; Thu, 13 Dec 2018 03:29:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544700595; cv=none; d=google.com; s=arc-20160816; b=a5zY4H4Cv3XBb7332EBrv5Gc+up/oJlluejG08BzVd5OCWvu5//rHTlGByP032d20m cuOGbcbv6s+Pmf3URk3+aev1ckCqV/O+w5ANtOLPs/n44CdLrkG5U1w4Aod4Rb1ncPGO a0OIZyw+kJFZIgFgK3pXrrV7RSrPqD04Z0EXcu++kCAxylksKFWSjUcb/yf54yGnmjoS iB3AeADyb3LPaOSjv36z9YOmXXo8/gioNhpotRXkLLLK6WqWvFQVWXFNbJ8i+5BcXv4i cOIdJxl5n8SpZ0OhxWlGlFeQcVXXulTpLHJH9npzi6z8X78KNNZ+O5NDug/iF2iPWXi0 etYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=ls7WukM8Q6ASmCah921K+CZk6XzMuovyqK9TJ+lMjEM=; b=zU/mulYk/+ZeF5vzlOFVwbmMtxSrDnCcY5ZsqIU6oVKz71pKjvbI2u6zC39z9K3D+M EcbkHnmpy7MvvwZ6dHa/P5WzVgCpt8Vih7IQBN2sT62skFe/ozd+XPGGjv9sbP7PnAhX wuGzjCTB8VfPau0z72ZcTidZUGmjjvKIob03GdILK5v4FpIXESL967oVwjvY/fyWFb5U AW9Qt3+3OgZDVDPmb1L7D0y3jovqHUu++9uHByGul3oQh5UZCx96Qg0azsEmLDEq6yup aoLZWULq19NAGRq1kDHCg+AdTqyyCYaxjOfNqY0+xLBEymFKuFxdTn69GL2Exj08N3RP tYsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w17si1208165pgl.6.2018.12.13.03.29.41; Thu, 13 Dec 2018 03:29:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728792AbeLML1F convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 Dec 2018 06:27:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54258 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728611AbeLML1F (ORCPT ); Thu, 13 Dec 2018 06:27:05 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 59B637F3E8; Thu, 13 Dec 2018 11:27:04 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-82.ams2.redhat.com [10.36.116.82]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E57D960A9C; Thu, 13 Dec 2018 11:26:57 +0000 (UTC) From: Florian Weimer To: Mimi Zohar Cc: Matthew Wilcox , =?utf-8?Q?Micka=C3=ABl_Sala?= =?utf-8?Q?=C3=BCn?= , linux-kernel@vger.kernel.org, Al Viro , James Morris , Jonathan Corbet , Kees Cook , Matthew Garrett , Michael Kerrisk , =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , Philippe =?utf-8?Q?Tr=C3=A9buchet?= , Shuah Khan , Thibaut Sautereau , Vincent Strubel , Yves-Alexis Perez , kernel-hardening@lists.openwall.com, linux-api@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [RFC PATCH v1 0/5] Add support for O_MAYEXEC References: <20181212081712.32347-1-mic@digikod.net> <20181213030228.GM6830@bombadil.infradead.org> <1544699060.6703.11.camel@linux.ibm.com> Date: Thu, 13 Dec 2018 12:26:56 +0100 In-Reply-To: <1544699060.6703.11.camel@linux.ibm.com> (Mimi Zohar's message of "Thu, 13 Dec 2018 06:04:20 -0500") Message-ID: <874lbhoef3.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 13 Dec 2018 11:27:04 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mimi Zohar: > The indication needs to be set during file open, before the open > returns to the caller.  This is the point where ima_file_check() > verifies the file's signature.  On failure, access to the file is > denied. Does this verification happen for open with O_PATH? Thanks, Florian