Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp65695lqt; Mon, 18 Mar 2024 01:09:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUM3lwdjbRjfUFtXcM27tPrDJWhnuf68DpKhyNuWaKZGQeLUJEsNjT/aye1vwhOOePGqy4qeeDPmny6kWEN8nkbpR0jZINTCn8Nje+eaA== X-Google-Smtp-Source: AGHT+IEbECt2HB3s9HWRg4fwhgyr5ZGGUW2RloradWM8IuCK3eNW98bKwnahzyhyoJ028x88DkRq X-Received: by 2002:a17:906:528d:b0:a45:b91f:2f95 with SMTP id c13-20020a170906528d00b00a45b91f2f95mr7351136ejm.72.1710749343998; Mon, 18 Mar 2024 01:09:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710749343; cv=pass; d=google.com; s=arc-20160816; b=ODKMur/6gTacL7evx86RD96c4aZc3ra5vygEs8aLYPSaejRihIVlf16bCP4qJXbuDF ihs0neYszteIgk23IP7DF119gdOYv6CuHZsVJs8B3Cpeo+f1xRxKMBseccuSKjMwIcLf UN9/FDDB3gX3M+sNdu5I9IJSJiojlMq3RJzKIxRNkIe9CVpHmtA8Y37OzBZAPie8A97q bY6iaN1gTkAzQZH/YEYa04iph+c2a6ecuKgU5jRAuzKOETAkpKaEWBwHcGykZ24refBw A80ydNux060NrnskupJqreC/vl/rpgp32pJP1KxawUcsa7CWgurqvSyXOLuM9yXVnKAy SSAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=+zsTrjvBZNB2yY8y3Ez/Xq1Q7UcxTpE+ROJS1ocOrx0=; fh=hfhtuMRvaAUD5pl8JQQCcQDedVXJAuhtkkd+d0nNtVI=; b=YQzl0ggi73IDE7Um5/uXY2ayea9R1z8sHj7m5/h4XEsILT0MqE2m3MJs2Hv3I7vi5D zoF3hStgyqOnKD5OJ0BpOOeEuSclk9+WpE/jbmB6DUbPqKXrlkfTD+RZpOleSJwseIex CK3gUvQX2cWuukK/LMkENw+9Maf7eyqi1bw4XcwfH6Kibzn9nAjqNMLOTCdeOqasjGTC J0M6oMbcOxRG7jkNhn9TfOx7Eq+HBrDv9MT9gvftksMZMbA4qPJUJZBTffsRPW2xul5H AadwnvkWmsN9Ud9Auf0uLtXz9d+6UTVNAhIwztAzPmwqRQ5qCE5UPDbJTVufpfeB2pd/ C0fg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-105804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105804-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id kk17-20020a170907767100b00a4669e9c3fbsi4059735ejc.448.2024.03.18.01.09.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 01:09:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-105804-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105804-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B56941F224C6 for ; Mon, 18 Mar 2024 08:09:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9074B28DA6; Mon, 18 Mar 2024 08:08:48 +0000 (UTC) Received: from frasgout12.his.huawei.com (frasgout12.his.huawei.com [14.137.139.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90E082575A; Mon, 18 Mar 2024 08:08:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=14.137.139.154 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710749328; cv=none; b=LSqThCEtWeP1VZjXGLIT5Gu3NDPH8hPF1jNi2fPYAA1NTVooIQZ4CKz+pn6PfMxUH+RDB3NzPZBOS1K9o0IYlJ5rzcZQkjWElp+7/U6Xb/UmWitDycJiwtHSRO9PE9Up0qHsHQycZ0junyIwu5ASHDTCPSAx1+AaA3jOtEZTwWw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710749328; c=relaxed/simple; bh=Ap9vH7z4CybKmdoIokhNZ07YCPHW29bDiI3auayIwt0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=SdblmGshp0M17wgPn3LJmZ2GvN+WIyKEOhdfEqB87rEW/QsbsSBt20T+odibXsM7zkSR6rPTyXdmUx5XsKvWAx+9wPI6+d8d6WGvf8/zlQuoB18yTIAoBJP4yx/YLuWW1BlTZVLO2sSqwS20IY2B6BoBSxE1+CPX15KkmhSgows= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=14.137.139.154 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.18.186.29]) by frasgout12.his.huawei.com (SkyGuard) with ESMTP id 4Tyn681nmjz9xGWw; Mon, 18 Mar 2024 15:48:32 +0800 (CST) Received: from mail02.huawei.com (unknown [7.182.16.27]) by mail.maildlp.com (Postfix) with ESMTP id 965CB14059E; Mon, 18 Mar 2024 16:08:28 +0800 (CST) Received: from [127.0.0.1] (unknown [10.204.63.22]) by APP2 (Coremail) with SMTP id GxC2BwAnEydu9vdl4iuCBA--.40027S2; Mon, 18 Mar 2024 09:08:27 +0100 (CET) Message-ID: <53a067f80db2e53ae29dc811515ab51c6ef86aed.camel@huaweicloud.com> Subject: Re: [RFC PATCH v15 18/21] ipe: enable support for fs-verity as a trust provider From: Roberto Sassu To: Eric Biggers , Fan Wu Cc: corbet@lwn.net, zohar@linux.ibm.com, jmorris@namei.org, serge@hallyn.com, tytso@mit.edu, axboe@kernel.dk, agk@redhat.com, snitzer@kernel.org, eparis@redhat.com, paul@paul-moore.com, linux-doc@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, fsverity@lists.linux.dev, linux-block@vger.kernel.org, dm-devel@lists.linux.dev, audit@vger.kernel.org, linux-kernel@vger.kernel.org, Deven Bowers Date: Mon, 18 Mar 2024 09:08:10 +0100 In-Reply-To: <20240318051703.GB63337@sol.localdomain> References: <1710560151-28904-1-git-send-email-wufan@linux.microsoft.com> <1710560151-28904-19-git-send-email-wufan@linux.microsoft.com> <20240318051703.GB63337@sol.localdomain> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID:GxC2BwAnEydu9vdl4iuCBA--.40027S2 X-Coremail-Antispam: 1UD129KBjv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On Sun, 2024-03-17 at 22:17 -0700, Eric Biggers wrote: > On Fri, Mar 15, 2024 at 08:35:48PM -0700, Fan Wu wrote: > > +config IPE_PROP_FS_VERITY > > + bool "Enable property for fs-verity files" > > + depends on FS_VERITY && FS_VERITY_BUILTIN_SIGNATURES > > + help > > + This option enables the usage of properties "fsverity_signature" > > + and "fsverity_digest". These properties evaluate to TRUE when > > + a file is fsverity enabled and with a signed digest >=20 > Again: why would anyone care if there is a signature, if that signature i= s not > checked. >=20 > I think you meant to write something like: "when a file is fsverity enabl= ed and > has a valid builtin signature whose signing cert is in the .fs-verity key= ring". I was also thinking the same. I didn't follow the recent development closely, but unless IPE locks somehow the .fs-verity keyring, the property you suggested would not be immutable. Meaning that someone can add/remove a key in that keyring, making the property true or false. Roberto