Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp50637imu; Wed, 12 Dec 2018 12:14:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/W+iqP+KKAgAGtARttZYUbflD751CutNX4PLZSxvt5Cjd4vQv749ZxiYl+pDuF39dBowHPI X-Received: by 2002:a17:902:2969:: with SMTP id g96mr20960059plb.295.1544645693619; Wed, 12 Dec 2018 12:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544645693; cv=none; d=google.com; s=arc-20160816; b=QkuPKP1YY9IYeGg3AT9+ESgIQGgxV6c4mCaY4TCuBrLsDxFiy9r2UzkPUg2uU5BIT3 q0ydsMOJtTbvtHj2bnbpAILzlr80AsMXjNKP7Ss3md0rep5UNJcNPr7yZ/bKZvEPQIil 2u4h/2ubYM8SxC0Y385TToPQ2bqZDhewwoq1WbOt7UTMiVBTtKRTt2Ya/OK/EeFcpa+l Yge8rl+P6SlpYf/mLe955WacddQRGfyJWgx9TwfK6wNqEydzgnpxv4oBj8lBwAsQiInf chS0bGdJujvY2cPxJUwkFFNaW3wgSUqWxp0i4eLg7cCckfGtX9LWA1ggtz4Zp8dmsvxf XUEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=5UulP3RcVX1O/XCmVu/bM4jzooUpdJMhmeQOpsa0weE=; b=RK1cpOPcXvd7ZCA0sr4HQwejiWnsSIAzcrVAKPt0qS17387NehUDd9f4tvq3tpOr1m aVZPN4vs7ByE9+cCi/zStqQ7JJzpS4i5W1Ejms+T/kbfUbPYiiiLVJEkHcBc9eMmqfMs IBBEiMBNewxE7Jp5VQ9svJf6UL7WSz5jWnAN9mLUi6QNe4fMgZcCKx3Q51QDgAzo1Fgw N97RS2gtYPyuJfkmDjdrKT0VRBbrVUApBGKeAMHMPM66fF5j+BdJlBwAqVGS9s3f9R/m q+l8Ct6GMLgMCDA/kEXyqluKkS0TEW3Z8qPEhWVBmdhjR27EIqOrZwoYrpc8TFo8upqL 4fZw== 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 e67si16845403pfa.15.2018.12.12.12.14.37; Wed, 12 Dec 2018 12:14:53 -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 S1727897AbeLLUN0 (ORCPT + 99 others); Wed, 12 Dec 2018 15:13:26 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57088 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbeLLUN0 (ORCPT ); Wed, 12 Dec 2018 15:13:26 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AEB853154871; Wed, 12 Dec 2018 20:13:25 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-48.ams2.redhat.com [10.36.116.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 332F06012B; Wed, 12 Dec 2018 20:13:18 +0000 (UTC) From: Florian Weimer To: James Morris Cc: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , linux-kernel@vger.kernel.org, Al Viro , Jonathan Corbet , Kees Cook , Matthew Garrett , Michael Kerrisk , =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , Mimi Zohar , 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> Date: Wed, 12 Dec 2018 21:13:16 +0100 In-Reply-To: (James Morris's message of "Thu, 13 Dec 2018 06:51:53 +1100 (AEDT)") Message-ID: <87lg4upkpv.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 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 12 Dec 2018 20:13:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * James Morris: > If you're depending on the script interpreter to flag that the user may > execute code, this seems to be equivalent in security terms to depending > on the user. e.g. what if the user uses ptrace and clears O_MAYEXEC? The argument I've heard is this: Using ptrace (and adding the +x attribute) are auditable events. Florian