Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp321567rdb; Thu, 5 Oct 2023 07:04:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLRBZkLMorWz+RZTEGYOxt7fVY6osGw4NzdfyHrC6/4A9UHkMC2aP4ppFy4zazPiA95Za5 X-Received: by 2002:a17:902:720a:b0:1c4:72c9:64ef with SMTP id ba10-20020a170902720a00b001c472c964efmr5077261plb.40.1696514659665; Thu, 05 Oct 2023 07:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696514659; cv=none; d=google.com; s=arc-20160816; b=JLsP1Loy4j+NkXcK2Y21UIO2N6bm4b1ZkJr31IWO2QaczPflGzKOtLE0tpRUtd8B69 uv4TbQhyPDdgrJCY7fSMNdAPrGZjStyQgxVyYigqO6Cp2NFnCKozBpyICt5b9OGArfBa XpAua7WtLfvhaCouiJ6es/CNgfbwKlgdFTvtLBl+laIjCCA/r76y4ReSkDILJYFfS637 AgaTX8WkI1SSLw+wYYguCU5CdooPenEfjkMOuHqQ3YshdRWPWqkMJaIbw8vltfTmh6MS a/sJxy5+39nK9SIyBN1w3AgvCeOdp0sOWOxkU9efhvkRJngR2I2ItM+hYbPv2JjKVrYp cCjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=Tk/tWsa69Leyj9ipJnNt9y71v/ZHhVK2fPaRDp6yvHQ=; fh=5PNWXHT5XbjKp9FfeXCKBOzOaoT6vahR+2sgxyz6JaQ=; b=BVBhVCXwppP6Wqp+X1R4KqXTlMVdgVegzJraUadrZ9V6NMtG0njqpvgwPzoywE52ab WDfedthPPEKjwqg0Tuupxsna4WbHl9gMla5rfgglPzaKIi01O1ppzII9J9kX5hnMW8/G ZH/fVVZUxKBN6njCwY+UX2kNbDrJRHfOcmqhz8q+DL3FS2H4uCp73h9XSNEtixEyFq2p ZiDxzyeG1RbANOva/nZMSb66tHlNx7CBvNJZQxw6BU3zad6NIPqCNZa5zISDDHhATx8E uvndybWu9GS3kqM9KqWjIGP8+lijizx8gWjfekxTAkwhkX6FjKRw2hQNCCgCiJgSAt+o 9jFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ZQxoETTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id k6-20020a170902c40600b001c7316f26a0si1715701plk.516.2023.10.05.07.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=ZQxoETTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 43C488041FE8; Thu, 5 Oct 2023 07:04:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233921AbjJECq2 (ORCPT + 99 others); Wed, 4 Oct 2023 22:46:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233874AbjJECq1 (ORCPT ); Wed, 4 Oct 2023 22:46:27 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0FA11C0; Wed, 4 Oct 2023 19:46:24 -0700 (PDT) Received: from [10.137.106.151] (unknown [131.107.159.23]) by linux.microsoft.com (Postfix) with ESMTPSA id 4A2ED20B74C0; Wed, 4 Oct 2023 19:46:23 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4A2ED20B74C0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1696473983; bh=Tk/tWsa69Leyj9ipJnNt9y71v/ZHhVK2fPaRDp6yvHQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ZQxoETTv2uriamkJ6lcmJ39iqLPRnLv5GPtaWy8Cgj0R2TbpV39ck1IMfXgHmLpSU V+Uu7J0ybvJh7tNBgQDYmTIlaWfSFLpTvLyQhdcaxLt7Lc2w56HcJAKUG31fioNpzB ZAoqtGDUC5O8nf+oC1KzCGnUrL5/L/89+LLpsR+M= Message-ID: Date: Wed, 4 Oct 2023 19:45:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v11 16/19] ipe: enable support for fs-verity as a trust provider To: Randy Dunlap , corbet@lwn.net, zohar@linux.ibm.com, jmorris@namei.org, serge@hallyn.com, tytso@mit.edu, ebiggers@kernel.org, axboe@kernel.dk, agk@redhat.com, snitzer@kernel.org, eparis@redhat.com, paul@paul-moore.com Cc: linux-doc@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fscrypt@vger.kernel.org, linux-block@vger.kernel.org, dm-devel@redhat.com, audit@vger.kernel.org, roberto.sassu@huawei.com, linux-kernel@vger.kernel.org, Deven Bowers References: <1696457386-3010-1-git-send-email-wufan@linux.microsoft.com> <1696457386-3010-17-git-send-email-wufan@linux.microsoft.com> <7cecea3f-aaca-4df5-9595-324137c3627e@infradead.org> Content-Language: en-US From: Fan Wu In-Reply-To: <7cecea3f-aaca-4df5-9595-324137c3627e@infradead.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:04:09 -0700 (PDT) On 10/4/2023 4:58 PM, Randy Dunlap wrote: > > > On 10/4/23 15:09, Fan Wu wrote: > > | diff --git a/security/ipe/Kconfig b/security/ipe/Kconfig > | index 7afb1ce0cb99..9dd5c4769d79 100644 > | --- a/security/ipe/Kconfig > | +++ b/security/ipe/Kconfig > | @@ -30,6 +30,19 @@ config IPE_PROP_DM_VERITY > | that was mounted with a signed root-hash or the volume's > | root hash matches the supplied value in the policy. > | > | + If unsure, answer Y. > | + > | +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 evaluates to TRUE when > > evaluate > > | + a file is fsverity enabled and with a signed digest or its > | + diegst matches the supplied value in the policy. > > digest > > | + > | + if unsure, answer Y. > | + > | endmenu > | > | endif > > Thanks for catching the typo/error. Not sure why my spell script didn't find them. Maybe I should consider using a better tool. -Fan