Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp146648lqh; Thu, 30 May 2024 17:46:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQP/FE5NUe/dukNavVlr4ttC5j1Z51i+J8Cuhl8YUlCHlw0aWgYnJMA0+mUX144fUkCo7Cg8sqWU/jP9aHWgvH1KD7zXc2cfIu+t3XRQ== X-Google-Smtp-Source: AGHT+IHBXBJ+f6ZSrD0BtteprI8GuERv1x7Dgrc3J32wZDBlEKHrHOve1NQyg6ndA3QgXKpHGoGE X-Received: by 2002:a17:902:6547:b0:1de:f91:3cf3 with SMTP id d9443c01a7336-1f6370bc7b7mr4107345ad.55.1717116360044; Thu, 30 May 2024 17:46:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717116360; cv=pass; d=google.com; s=arc-20160816; b=wRpVVaPeDAEBVp+LN+BsP0S0bvfbydwH17p40OkDHqgtWqVq2hv8aEfoSFudLFPAnh bJ9MBes9A46aQjvgKEvTAEHIP3IpANLYQxR+ndQtOj/oLIs8m+fNPVQWTYulnQAlPx4U 50ydEkM/urq8Hj6DrrwfToiZVtq3bYMkBOaYW+fOML91YupbaUwV7BSVZn6Ce0OeU1Sp mSbi7Pw0MIVUEG3DUSR+VHvgDJqPhoWu5Byv0LFgtE6DqxpdFCMyeqrtUxt2WpJQNl9A Dsfv3fCjTEPElNGHQ+8yuKHoWlYyQkza68MixYPSK0LgA34pXqv7yLugrGGV10eyMPFg ygKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a/uTcB0U9t84gYUbj1OtHy0jIab8NUfwamdeEnVoJZM=; fh=yi+Agi+AOp9jrzVOYW3ps2Xn4zWgSAgvMmK9GOupfmc=; b=V/Il8P6hZLlsXUZhC8G9iIKvozbsJhPoSv3nVq6N7ctX9Ulc76IRXC+FyPIpAZ1Zow 1+e673iiXNviK2rq3k9GadZYHziwVmLCJ/Jw82rtyMt7ea3NYL2x9T5LTJaU8jtswGoM 8XWA1bWilvRYN4iYJ0P4+AeU8W1euI6+rjBv6EXYfzvCWw/43OVyAZnHpm5KyOiM9VCe TqvifJPR7tnejNbAoHeqq8qNPNAGM7t25pEY7IjUbpGNFOnY1xG5LU4wfSVs/pqfG0B3 HKbxJegjajIW0//Wm9t5RnV8PHzgVouT9oJg9afOXu/2mkiYjSU8Jm0QziccPR5iyh+J x/DA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aL+I4kcJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196097-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6323ea1b1si5578175ad.354.2024.05.30.17.45.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 17:46:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aL+I4kcJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196097-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196097-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CB723B2575F for ; Fri, 31 May 2024 00:44:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDB3D1171C; Fri, 31 May 2024 00:43:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aL+I4kcJ" 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 C8A44C8E9; Fri, 31 May 2024 00:43:23 +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=1717116204; cv=none; b=XbnH2XFsGz3VYksgngGQwBo2TKEie3tMsNJbYPnwGkRZCVio8vjkXYsY2tTgrAtTxIzS6k1//oJD8SejceyNVle0oQj+7kqrVH09wy+4kNyNjtAq2Zl0x0IFGamK4vlCCSKzhy3NF1b7VIMfzavB7ZUm5EMsl76ssza7R3mqMxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717116204; c=relaxed/simple; bh=Si8XOeHALztLMCNRy0WVUR6eEdJsznZcIFbxAADO+ws=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t6mFcna2KcbI4CdYz3HgExVYO6j+3xgXfT52pPWNViVMNYFZo2WXY+RuYoxenvFD9JLcaur1Gjar1JSgyNh8bRHuUftwbn3Y9YuBDIjqJlXQA1dtVHXIl6kBO7o8Gteq1WZCU5II6QFlumAV0NLnzx8+s7SWKA97H4gNAUckDcc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aL+I4kcJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D22D7C2BBFC; Fri, 31 May 2024 00:43:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717116203; bh=Si8XOeHALztLMCNRy0WVUR6eEdJsznZcIFbxAADO+ws=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aL+I4kcJ/OXypWoEww0Gcs/K6q+ipdHIFStSTPXEusvtmwsVT6Y5Gx+hB/Z8NFvcg kk0aN5Ya2M3CtobxjGIO/J8URF8KA8GPPSqmdaRS/J0LLdEfPA0O12JA7q/hQ6fGfX SwfuTm0oJ+BUOIpXNNN9GK0rAuZVJsxMYF0i/EoIwfnBnWjEOag1O0HrcFn3kbyYtd t1OTPhgcjJPrqXeKo5kubhG5AO+qWl+nsDbFvnc17W78pikT8ci40gbrCQjnnwBQH1 AzakKGpI2SiDbCV3seJHFg22s50U9W40RxniIrslsdhtv3JRiZLu3+h/ThTs7xM5SB Kvdqh9bknwLeQ== Date: Thu, 30 May 2024 17:43:21 -0700 From: Eric Biggers To: Paul Moore Cc: Fan Wu , 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, mpatocka@redhat.com, eparis@redhat.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 v19 15/20] fsverity: expose verified fsverity built-in signatures to LSMs Message-ID: <20240531004321.GA1238@sol.localdomain> References: <1716583609-21790-1-git-send-email-wufan@linux.microsoft.com> <1716583609-21790-16-git-send-email-wufan@linux.microsoft.com> <20240530030605.GA29189@sol.localdomain> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, May 30, 2024 at 04:54:37PM -0400, Paul Moore wrote: > On Wed, May 29, 2024 at 11:06 PM Eric Biggers wrote: > > On Wed, May 29, 2024 at 09:46:57PM -0400, Paul Moore wrote: > > > On Fri, May 24, 2024 at 4:46 PM Fan Wu wrote: > > > > > > > > This patch enhances fsverity's capabilities to support both integrity and > > > > authenticity protection by introducing the exposure of built-in > > > > signatures through a new LSM hook. This functionality allows LSMs, > > > > e.g. IPE, to enforce policies based on the authenticity and integrity of > > > > files, specifically focusing on built-in fsverity signatures. It enables > > > > a policy enforcement layer within LSMs for fsverity, offering granular > > > > control over the usage of authenticity claims. For instance, a policy > > > > could be established to permit the execution of all files with verified > > > > built-in fsverity signatures while restricting kernel module loading > > > > from specified fsverity files via fsverity digests. > > ... > > > > Eric, can you give this patch in particular a look to make sure you > > > are okay with everything? I believe Fan has addressed all of your > > > previous comments and it would be nice to have your Ack/Review tag if > > > you are okay with the current revision. > > > > Sorry, I've just gotten a bit tired of finding so many basic issues in this > > patchset even after years of revisions. > > > > This patch in particular is finally looking better. There are a couple issues > > that I still see. (BTW, you're welcome to review it too to help find these > > things, given that you seem to have an interest in getting this landed...): > > I too have been reviewing this patchset across multiple years and have > worked with Fan to fix locking issues, parsing issues, the initramfs > approach, etc. Sure, but none of the patches actually have your Reviewed-by. > My interest in getting this landed is simply a > combination of fulfilling my role as LSM maintainer as well as being > Fan's coworker. While I realize you don't work with Fan, you are > listed as the fs-verity maintainer and as such I've been looking to > you to help review and authorize the fs-verity related code. If you > are too busy, frustrated, or to continue reviewing > this patchset it would be helpful if you could identify an authorized > fs-verity reviewer. I don't see any besides you and Ted listed in the > MAINTAINERS file, but perhaps the fs-verity entry is dated. > > Regardless, I appreciate your time and feedback thus far and I'm sure > Fan does as well. Maintainers are expected to do reviews and acks, but not to the extent of extensive hand-holding of a half-baked submission. - Eric