Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp846423lqd; Wed, 24 Apr 2024 20:42:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+mG5o5fULGsS4Bn+8QkvJckq+iZGMuYoGQoG65KpAlRSWuXdWredJDNM2jGEiQx69w2t8o0QeMuXkQ/j2l+L0ME9if2LpnU7v2CKrBA== X-Google-Smtp-Source: AGHT+IG3C1Nmrfjnd6tc0eJb7BOTx6cweysrC4qEnY0lkxVNX0ENkReL2/xvP7WdkENmNQ0wosaF X-Received: by 2002:a05:6214:88b:b0:696:8c2f:9a12 with SMTP id cz11-20020a056214088b00b006968c2f9a12mr5064837qvb.37.1714016579041; Wed, 24 Apr 2024 20:42:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714016579; cv=pass; d=google.com; s=arc-20160816; b=QinqdvGok1SsSfYbwTHkNugDfGDdFNOg7HIg//VQr/A6ixdCVnHR33xBh+Q6e2hgd+ JeCvhYPQIkb/OumPR0NQ2imxh+T4AoMxmlq7S/Zvtwk42wp6ep6QoUcBqulyAcUO0t6H NDXyzNKF+euTSJnC9K55wlb5M6kSxoYtvVUnXqxlgT4rkDM9wy1UX9iM77MXDfJK87f6 bZRP99PzGH2ZLNLfxQetRJ1SDib6ZN0mTUekB1/+SpQAM9qBAGH2YQAsi/Sl2L12uITE 1eDi19SjgDPq2raZbRNnPJlsppXR9/udwuNFIYyb8xpwj28v2fSL7FjQdQVxDJYQbipB y/Iw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xmwsNi4bQsXYLIlUuTbPxu7Ccx7KxoxUOCplU603moM=; fh=tBL3q0tIRR0gzVsb9JkPDpuT1fOoR1ERDu7WXJYo2as=; b=KLQTMkRcfLNSM9kjqyR1hYNMUiGhrFrVkgFZc2kTGbPZafi2CdOqDSorB0zrzi34h7 j7doGYR+D/3/KHDY1JC8Wy688sbnINJXUY0RduiBG2tinRynIPMfoIcLdmZ4iy6j3akL P4yBlXqC7+a7b8AUgHH4Aysz8OV2YzPjYzvl/todl2sqh9meUfakDRx+uwjPkMq4Tyrt O9IXFV/9Po0cUTdRG14a/kAKh+GX5rmRHO+k4N2MTIi5Rz7ZOhOap+uH/mxc8MSnO4q1 VW/qm8loCCg8skI7qiw6tGWXm983EaCQomSifMGnyrX3dczKkzWrsvSsVbTC0I/soYPu zoVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oiiz9zVQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id jm14-20020ad45ece000000b0069b413eafdcsi16342348qvb.130.2024.04.24.20.42.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 20:42:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Oiiz9zVQ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AEA961C21347 for ; Thu, 25 Apr 2024 03:42:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E0D6376E1; Thu, 25 Apr 2024 03:42:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Oiiz9zVQ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 379A7249F9; Thu, 25 Apr 2024 03:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714016556; cv=none; b=gYaORCZD5/vNf5n4MIRcXOUHWM9V0O6/Z9pgL72DQ/xFt3jOrKS/vGMAASJBCIpMZvS9tsx0gcLTZSIRD2FuExeG4+Dd+/luYAgVufELlBp0ot6BIUHYfEiuppchfm7c86KcQ3vupTjlLYg0CeWMwtj++tT3u3j9d0jt7uaPXlU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714016556; c=relaxed/simple; bh=meGItb0gYvU6XxtF1MngGAZWQ+39zegqnIascrO7roQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EwOgf+3QQ1QscZ7PQMbEhfSBMVP98umiRPpQUKG00QhKETJ7QmCmkb5V5Ze6Zz4cMhizRAEb32mnfpYLy9K+H7Z3wYssamzboH63DtIUrB35m6y+Y5h8YihjXXD6+mweBDa9UKb2jrpZrVA6YeRzH5oTDi4n06cRD3+ssFw4Vhs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Oiiz9zVQ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B926C113CE; Thu, 25 Apr 2024 03:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714016555; bh=meGItb0gYvU6XxtF1MngGAZWQ+39zegqnIascrO7roQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oiiz9zVQNbAlp33I8T93khpL3VupBBWMtSQiwaM3Uucc2N0y+hHdyFVIrSLSjbaAK pO3PhhVEVJuaxwt9zAToR4gWEZBI3gdFOImUsFtpwsjyJUBk1+b+jD4KBXkiaXpeZw zjcCkFf2+D5wB9cj9mBf1G58Ke03FafRDraxMb0iZhSj2IEsItVz72U9HIAPzEJw+f FVSu79CQbNKesa5KbI7rXP1kDOnPZt+qTTC3hHMQZd9RnT0vM6lS4CHz6snOjQ0Pxo HywsHZf7COFo0jgNonuzWQ6iR+Y+yr2JDKSgLqI1I+rdQdY6ruL6yywXGe/+nDlU0d aw75d72jfXQ4g== Date: Wed, 24 Apr 2024 20:42:33 -0700 From: Eric Biggers To: 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 Subject: Re: [PATCH v17 17/21] ipe: enable support for fs-verity as a trust provider Message-ID: <20240425034233.GB1401@sol.localdomain> References: <1712969764-31039-1-git-send-email-wufan@linux.microsoft.com> <1712969764-31039-18-git-send-email-wufan@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1712969764-31039-18-git-send-email-wufan@linux.microsoft.com> On Fri, Apr 12, 2024 at 05:56:00PM -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 has a valid builtin signature > + whose signing cert is in the .fs-verity keyring or its > + digest matches the supplied value in the policy. > + > + if unsure, answer Y. Does this really need to depend on FS_VERITY_BUILTIN_SIGNATURES? That's needed for fsverity_signature to work, but fsverity_digest would work without it. I'd prefer if people had the option of only turning on FS_VERITY_BUILTIN_SIGNATURES if they really need it. - Eric