Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp771633imu; Thu, 13 Dec 2018 04:18:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/XYHdVRQDqUxEgI2G5FIgesH4we+D9Q2z7O/GkSJomXUSy/PzepKQOyFBykn6bhx3978H+i X-Received: by 2002:a63:104d:: with SMTP id 13mr21738654pgq.303.1544703528665; Thu, 13 Dec 2018 04:18:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544703528; cv=none; d=google.com; s=arc-20160816; b=Lk7nOdhVACWTVFkW/JtJUUyDqdpDv+zxz+N4oUrgFxUbOLOsTMbXkZT3PdeaBYAnpT WinwWRDedl/3mkn4T9OC4U0YB+SdHCWqDtq9JWXeoijQGR7FmC4fuLYuXvZNtTZC/J85 KsH7DTvFoRcQZXYuR/Sqx/puHJzNSgTDYrqGijUad9yQV3ZM86njR/z0JhwzpxFN07Tt gzxUMd1EMsjH+vQtR8z2kfwEGoJ19g9iNWp3hxsUyrxn7ydkYYXnwAtQ3a1C+Jp56pZQ Ze0kYAN4WOZCLtzzRLuQACaHroYHf+l7AMKVK4hllfqA2oJV0va8ygqdp07irw64IGsM yo/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=K07ObF6UTOIvEpGwrhj6+BSqW/U2gvqgGv2EF/yHXH0=; b=pD2hMMo+g/J9G56RYvOmoEIP02zVrcwtsdOCSexUH0edY6/KXuSLUIXI0skgmwnqb5 5Oe1qOGgDqOeR1gVvSLckZbtsfshC/fBItXgjb4GMmTcZVMH9w7LWLoB1F6WLdHRAUtX aczPxEnO1Z2OsNQfeTh8D6CGzxU3NSRFWEAoL8Oguyk7DHH/HZNymOJexJ1PXixbOuSl /doSgWFlZoFnqyErB0uGOgH59BoopozGCr/pln2tXH6eRRuhmrFh/jdHzFeaZsBjYGvG yLc17tQaK/4D+M4Lu2TYZ/N0G4Dq9C38xB/4UslH+iVBAuje037N7gU1Yk4GQJR6n3J6 odJA== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16si1507991pgb.140.2018.12.13.04.18.33; Thu, 13 Dec 2018 04:18:48 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728981AbeLMMRQ (ORCPT + 99 others); Thu, 13 Dec 2018 07:17:16 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:49068 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728951AbeLMMRP (ORCPT ); Thu, 13 Dec 2018 07:17:15 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBDC3o52111663 for ; Thu, 13 Dec 2018 07:17:14 -0500 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2pbku8jum4-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 13 Dec 2018 07:17:14 -0500 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Dec 2018 12:17:11 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 13 Dec 2018 12:17:06 -0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBDCH5uI42336490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Dec 2018 12:17:05 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1C9C0A4067; Thu, 13 Dec 2018 12:17:05 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ADF0DA405B; Thu, 13 Dec 2018 12:17:02 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.105.18]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 13 Dec 2018 12:17:02 +0000 (GMT) Subject: Re: [RFC PATCH v1 0/5] Add support for O_MAYEXEC From: Mimi Zohar To: Florian Weimer Cc: Matthew Wilcox , =?ISO-8859-1?Q?Micka=EBl_Sala=FCn?= , linux-kernel@vger.kernel.org, Al Viro , James Morris , Jonathan Corbet , Kees Cook , Matthew Garrett , Michael Kerrisk , =?ISO-8859-1?Q?Micka=EBl_Sala=FCn?= , Philippe =?ISO-8859-1?Q?Tr=E9buchet?= , 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, linux-integrity Date: Thu, 13 Dec 2018 07:16:52 -0500 In-Reply-To: <874lbhoef3.fsf@oldenburg2.str.redhat.com> References: <20181212081712.32347-1-mic@digikod.net> <20181213030228.GM6830@bombadil.infradead.org> <1544699060.6703.11.camel@linux.ibm.com> <874lbhoef3.fsf@oldenburg2.str.redhat.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 18121312-0008-0000-0000-000002A0C48D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121312-0009-0000-0000-0000220B45C1 Message-Id: <1544703412.6703.46.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-13_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=652 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812130110 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Cc'ing linux-integrity] On Thu, 2018-12-13 at 12:26 +0100, Florian Weimer wrote: > * 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? Interesting!  According to the manpage, userspace cannot read/write to the file.  It looks like do_o_path() intentionally skips do_last(), with the call to ima_file_check().  If the file data isn't being accessed, does the file's integrity need to be verified? Mimi