Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp33447rdb; Wed, 4 Oct 2023 19:27:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeoWwebrDqfeHOLMIEEzePrbzY4uKuWCqYdSNydC/FOC2xeD2cGj1oBi+5vOOaqgAdSK1g X-Received: by 2002:a05:6a00:24c3:b0:691:21:d9b7 with SMTP id d3-20020a056a0024c300b006910021d9b7mr4785126pfv.27.1696472876216; Wed, 04 Oct 2023 19:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696472876; cv=none; d=google.com; s=arc-20160816; b=ZaqNnejKC4rEz6QZk1LFAqEI+FdgT5OFYtdBoRZmKRtkqIMDGYOdbLZuQKq4XU+DWN Tj6kBU+6JE15bObx1eFy+3B/jpoEiuGEch3RFXAOQg26prvl71oHAn9ZsBY8yO3tsbu6 vy3aBOSq8+Vkce/Ey0MFXfM59aGt1mgbYyh7i7HAk8NdWdLwWqq8w2vqXK/d4LIsB1nv vNz1BeB7XMyTWP8uA/GoHxP9jzBdoCHO/X08pGhhfitluRAr+BsGeRIkUfL0kvt19djb +gusK6kPLdAIQyLYOr2qgePVrRCk6PqkgkfyKP92MnM7TncRsgm4C+CPIGDVtPBWZqUG g63A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IKbwJ4NKdHfOj9qf+QgTMA+lVLD+nm30pZh0VwT/ohc=; fh=fjBXgUs+UIifhCkZHJtXyc3wx4lNiZ21Eqxq2LneKbo=; b=ll1/kv/ZzK7SSotsLDHCyCOb8GZxwL5CtwBt+7IpnmTzNiOSRpfmv2ASn3Dl28e2+3 U4aWSoOQCtTS8G3lFDWrsrgIUBSuTGwdTMUJmGHjvwvVOo/Wr9ZO4YcSHeB/ugF1MSdX V6keFpblQutuNA5hg9QLJPg8u3kb11UUk3snaPdKnukev/+pVgROjg4R3vYZHUABgkgT kLfFHY+9lT7c2zUHjdt7Bn5qTsUNV4eVvpSW2bhqux15miNHX9OvBJoqUH7tVGVLyAZa 5O+b2wKbo4J4dx0uPNx2OaUeWCfV4sTsZsXtipqeO7HqUF7Z7Vy8LbZhGBZrogF/gzDu dc1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ielImPIn; 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=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l71-20020a63884a000000b00573fc6de956si494118pgd.223.2023.10.04.19.27.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 19:27:56 -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=@kernel.org header.s=k20201202 header.b=ielImPIn; 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=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2D29281DEEE4; Wed, 4 Oct 2023 19:27:33 -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 S233743AbjJEC1R (ORCPT + 99 others); Wed, 4 Oct 2023 22:27:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232583AbjJEC1Q (ORCPT ); Wed, 4 Oct 2023 22:27:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CCA7BF; Wed, 4 Oct 2023 19:27:13 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3366AC433C7; Thu, 5 Oct 2023 02:27:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696472832; bh=Dc7ed0EpqwHKkV+keuyjFNWgolgsWB/My9A+mXFzLVk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ielImPInTS8NqY7+g3fPoGycU7A+M62lI7bXjJFPd5Juc7UwVPS0KCS1hJyHORAG/ ZIC9LbRX7VFpbygRKJ2nubq2i8IgOqlctlcSuckd8fnqwbr3JkLQQXaKkzavQn/SfV im1J8A6ugi5p+Lc58jcl6+mJcPutLhpJzqMl5LWhgAbkvyqsG7AysOAmrzYeDq0kio p/LBsjBRnjJJHpkIySOI6RU25krmm+qvqeVU0ZTCHXhCo0X5vTlS1xf/E/0Sx+tAci Zlr9Q/FUViD0+dTQ0sP5LE8K247pGaWhe5C9XlZsn1wAkNcXjeKd+hqSD2tHFgcDJD btFp5u9R1ENkg== Date: Wed, 4 Oct 2023 22:27:07 -0400 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, 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 Subject: Re: [RFC PATCH v11 15/19] fsverity: consume builtin signature via LSM hook Message-ID: <20231005022707.GA1688@quark.localdomain> References: <1696457386-3010-1-git-send-email-wufan@linux.microsoft.com> <1696457386-3010-16-git-send-email-wufan@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1696457386-3010-16-git-send-email-wufan@linux.microsoft.com> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Wed, 04 Oct 2023 19:27:33 -0700 (PDT) X-Spam-Level: ** On Wed, Oct 04, 2023 at 03:09:42PM -0700, Fan Wu wrote: > +#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES > +static int fsverity_inode_setsecurity(struct inode *inode, > + struct fsverity_descriptor *desc) > +{ > + return security_inode_setsecurity(inode, FS_VERITY_INODE_SEC_NAME, > + desc->signature, > + le32_to_cpu(desc->sig_size), 0); > +} Why isn't the type of the second argument 'const struct fsverity_descriptor *'? - Eric