Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2935628rdb; Wed, 4 Oct 2023 16:59:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH4F6hl9nAihkC8kFNaiC+hUfAIBpyMDzTbyJCTRJmRF0sK74FTaBgXwkFXvmSQRQ8zjzMS X-Received: by 2002:a17:902:d2cd:b0:1c3:94a4:34bf with SMTP id n13-20020a170902d2cd00b001c394a434bfmr4686891plc.66.1696463981780; Wed, 04 Oct 2023 16:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696463981; cv=none; d=google.com; s=arc-20160816; b=G05sIu8jzTIqoJ6IyN5IJZ63L4l49/xnTQKfjXQb1DGlm+Jdem0jEYiocXX8DAP/+i yatA9PML0U65Wt7TNGoX+ZXd8/zQzZDWSm1q1LMf0xYVGK4xvSwmbAuTNIXxcLooYrul 24z9qXBDJDfdRmuEGK7s+PvDryGuNeJhMz9OkDdtncnbHE67ry3hlaVNL53uxXIjwgsc HS4c4cUbHJZpPvUYOrAokMOS+l3rdnYQitwJDolemLx4kVl0z+9it1oJJiu311YEQRFo iV10yAI7yI2+tKbUL9ozgDVMiL99Oe2b+U2cElnQTSXIwV1eanFhOfSLvLZozn+XY6+f 2zOw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=8bHwpVVd6d69HoBRfKHhsJ6ej2qirXfuILe1zt+xN2c=; fh=/4emt+xqQfqvwnF06SauAiXu40Y4Jij4PH1Z10oVnLQ=; b=L4td2IJWwvkSM7ook97/nFVfhE/z9OEa4ikD82qf6R6bcc9psnWIKRQfFmg8I2zgOY LfjlV++HEFMhbOTn8EYJMBMlqMbYf9Gp++QGJjHb78DUG5GONW0JFrp4ZwGkbEqWgs/5 tBaWV5jrBCvzfth3SjZ2IC1+u7UfXmBOVvo7xjIXxBCUchDNxryVQ6EO+ZjY4EW566ky 9Muhgzmsqdt3BE0pYQHrdacZeZTaYTBS7Qr/cOCOpuR/OTMH1TrmJnBXb/l1GoJgrdxH Z2G2ICPZfXZvS6CJgal0kOpwPVXjNrh4e3Te0A0gCNux9FGHYETsi+kSdmJ2ZjZcXhgn 0ADQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=g6YEbwgZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id l18-20020a170902d05200b001c62b94194dsi229816pll.629.2023.10.04.16.59.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 16:59:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=g6YEbwgZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 96AAD805FD6E; Wed, 4 Oct 2023 16:59:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244108AbjJDX7F (ORCPT + 99 others); Wed, 4 Oct 2023 19:59:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjJDX7D (ORCPT ); Wed, 4 Oct 2023 19:59:03 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A5549E; Wed, 4 Oct 2023 16:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=8bHwpVVd6d69HoBRfKHhsJ6ej2qirXfuILe1zt+xN2c=; b=g6YEbwgZo7Uv+8eOWh8j3/AJJf LKvBzoX3cs7SePusd2TeD0N3Lw+fFlq6Zu9N5yIZh+9N72mjPXuJzIOToQa0h0sPUBmuPyfVTNFmU x5wQJVAokysYbC9hDVGZjHz0DyxqlYiyWrQy5FtCe3WNbFKUxnTNHhox1VBtR41JYOF4SxrW4dkL/ RRm4kPV8eRY3OWvtT882d8TMfJwZGC0jU2Xcdh27n7ryu7O/BJ0blDJt5BFiFAEUTCIH65lapTL4R LWVDpQbBZUTl8H8J18KOAyKDLPFwk9sV1A4QZ79evhehGQAMgePTK4f0xI8JhCvPZKuFyKznS1Y7o qE5H25ow==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qoBlI-00182U-0V; Wed, 04 Oct 2023 23:58:40 +0000 Message-ID: <7cecea3f-aaca-4df5-9595-324137c3627e@infradead.org> Date: Wed, 4 Oct 2023 16:58:38 -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 Content-Language: en-US To: Fan Wu , 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> From: Randy Dunlap In-Reply-To: <1696457386-3010-17-git-send-email-wufan@linux.microsoft.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 16:59:16 -0700 (PDT) X-Spam-Level: ** 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 -- ~Randy