Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3748389pxa; Sun, 9 Aug 2020 10:18:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyITnGw9fLS5sHi4X2ejmq2l6iRlKFYNBOPa6Uk2+EILgXoQEqiqzC2HnJFgCysqpH6DMcy X-Received: by 2002:a05:6402:1e2:: with SMTP id i2mr17325968edy.70.1596993487177; Sun, 09 Aug 2020 10:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596993487; cv=none; d=google.com; s=arc-20160816; b=sniVYb/bO/CnbxvlSBNNu7pYpWTC2sTHEDmcPz/awL5/7dvawG4r2HkT+W3TFkid8c fDzblFkbIFPYvpuC+fgcor5Zn/5tEiQsg3yc70bDj0iaJybeNmZMQvFrOE6+ynCU340E Nk6yBaFXMcgcwDrtYuA8tHjiFeyFD9vlhRiM/vXejN8RVF46mVwq1mMCl100QraDXQro 1aHZmDe98H2MJcDoNLJzNLDOjawXkdUfYgiNlg+9xdhQBimG32g0JRPoBxtJGZjV0LaF UnBoHt1t+iMtc+vjTw9XzztqV5l13Yp3NgEY44iIenZitj12tctJpt2vpsw1uF1mTqVC vcWw== 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 :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=Y4/CY+X1bLpw0h7ULwkEbRs6wZfUb58vfksYUxmO+cI=; b=c1iEDJq34QK83nozl1+YYVYdZuySTEaVYUYesRkyqckqbvv6wZJ3d9lBm1iyhGs0gw LREvce6lCL+aM5/8UZ/IpradYAhVCQYB93CVevmZ9qcpVvJidkEPfBX9oauFtpan6eCA 0zNOaG6YF4Lp6u1gyldC181Jh6dy156DD1sezCxdPCenIZQp7je5TAbU+Aab5k3JLY/T N/ThkeObJututzVeuOhyXiuJbYE6+XCjGtDXnF+FyUiqVaQx+cmrqXuS3doqQZ09Q9EA j+peU9ZtJeUl0lNKE7KVqi5UKGLLQpa56z3H1V3CkAmUiEdj6Lljsy/6DbFhc3QkqiUM qJxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=OmeQE4ma; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f25si9267571eje.338.2020.08.09.10.17.43; Sun, 09 Aug 2020 10:18:07 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b=OmeQE4ma; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726392AbgHIRQ7 (ORCPT + 99 others); Sun, 9 Aug 2020 13:16:59 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:39118 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbgHIRQ7 (ORCPT ); Sun, 9 Aug 2020 13:16:59 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 079H3DIk149722; Sun, 9 Aug 2020 13:16:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=Y4/CY+X1bLpw0h7ULwkEbRs6wZfUb58vfksYUxmO+cI=; b=OmeQE4maRujd34oSR3XBPZw15i9p001MOKNm6gHiU1w5MUhhwDszEZ3EMk+BYBzC5h3X tX7H0bziDCgaiDdqOmUCT2Z3f9GNNq76+WUD4GS+cXGkdY2W/8BT+jxAE8vGXSQNDLq2 pnmAp5LwuGvXkf51LOVJOLG53UNqI/7WmWXYApRYNRMWkvABPw9iHhfNYqRSKqSVPPJX GQEBH9h7BHC0jOfgIYutD5ERSFwihelpvWle/ojdtD2uqO3eEJt2J0yHqI22rOUMtlvO C7X55BfvsNJ+fqZ5BoSdrBHiJIvZ7hv/VwIiJVklB3Eojw7vsFZkyxU/wGRwUc9N5dUS nw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 32sr4qdvby-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 09 Aug 2020 13:16:32 -0400 Received: from m0098417.ppops.net (m0098417.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 079H3Fog149899; Sun, 9 Aug 2020 13:16:31 -0400 Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 32sr4qdvbj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 09 Aug 2020 13:16:31 -0400 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 079HG5EI011619; Sun, 9 Aug 2020 17:16:29 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma04ams.nl.ibm.com with ESMTP id 32skp81cqv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 09 Aug 2020 17:16:29 +0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 079HGRT320054392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 9 Aug 2020 17:16:27 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4105F11C058; Sun, 9 Aug 2020 17:16:27 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B839C11C050; Sun, 9 Aug 2020 17:16:21 +0000 (GMT) Received: from li-f45666cc-3089-11b2-a85c-c57d1a57929f.ibm.com (unknown [9.160.25.223]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Sun, 9 Aug 2020 17:16:21 +0000 (GMT) Message-ID: Subject: Re: [dm-devel] [RFC PATCH v5 00/11] Integrity Policy Enforcement LSM (IPE) From: Mimi Zohar To: Chuck Lever , James Morris , James Bottomley Cc: Deven Bowers , Pavel Machek , Sasha Levin , snitzer@redhat.com, dm-devel@redhat.com, tyhicks@linux.microsoft.com, agk@redhat.com, Paul Moore , Jonathan Corbet , nramas@linux.microsoft.com, serge@hallyn.com, pasha.tatashin@soleen.com, Jann Horn , linux-block@vger.kernel.org, Al Viro , Jens Axboe , mdsakib@microsoft.com, open list , eparis@redhat.com, linux-security-module@vger.kernel.org, linux-audit@redhat.com, linux-fsdevel , linux-integrity@vger.kernel.org, jaskarankhurana@linux.microsoft.com Date: Sun, 09 Aug 2020 13:16:09 -0400 In-Reply-To: <329E8DBA-049E-4959-AFD4-9D118DEB176E@gmail.com> References: <20200728213614.586312-1-deven.desai@linux.microsoft.com> <20200802115545.GA1162@bug> <20200802140300.GA2975990@sasha-vm> <20200802143143.GB20261@amd> <1596386606.4087.20.camel@HansenPartnership.com> <1596639689.3457.17.camel@HansenPartnership.com> <329E8DBA-049E-4959-AFD4-9D118DEB176E@gmail.com> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.28.5 (3.28.5-12.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-08-09_09:2020-08-06,2020-08-09 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 clxscore=1015 malwarescore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2008090130 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2020-08-08 at 13:47 -0400, Chuck Lever wrote: > > On Aug 5, 2020, at 2:15 PM, Mimi Zohar wrote: > > If block layer integrity was enough, there wouldn't have been a need > > for fs-verity. Even fs-verity is limited to read only filesystems, > > which makes validating file integrity so much easier. From the > > beginning, we've said that fs-verity signatures should be included in > > the measurement list. (I thought someone signed on to add that support > > to IMA, but have not yet seen anything.) > > Mimi, when you and I discussed this during LSS NA 2019, I didn't fully > understand that you expected me to implement signed Merkle trees for all > filesystems. At the time, it sounded to me like you wanted signed Merkle > trees only for NFS files. Is that still the case? I definitely do not expect you to support signed Merkle trees for all filesystems. My interested is from an IMA perspective of measuring and verifying the fs-verity Merkle tree root (and header info) signature. This is independent of which filesystems support it. > > The first priority (for me, anyway) therefore is getting the ability to > move IMA metadata between NFS clients and servers shoveled into the NFS > protocol, but that's been blocked for various legal reasons. Up to now, verifying remote filesystem file integrity has been out of scope for IMA. With fs-verity file signatures I can at least grasp how remote file integrity could possibly work. I don't understand how remote file integrity with existing IMA formats could be supported. You might want to consider writing a whitepaper, which could later be used as the basis for a patch set cover letter. Mimi > > IMO we need agreement from everyone (integrity developers, FS > implementers, and Linux distributors) that a signed Merkle tree IMA > metadata format, stored in either an xattr or appended to an executable > file, will be the way forward for IMA in all filesystems.