Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp621498lqp; Thu, 21 Mar 2024 10:25:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5XjY3l3vWWc7enBHm+o4f9EkW9NtXC0mUP4KwLQnuY5qyy/6KgSQemXNOrZSLGbb4RCgMeAtw8VckYfjx9yPbT+w4TYTj2iXzqhOwNg== X-Google-Smtp-Source: AGHT+IG33jGrnsFfNVmSHP6lkMJB3JSUcq802ILlQ1QBPZM14XJykTM3esYFO8caa2IOi1f6OX2h X-Received: by 2002:a05:6a00:2450:b0:6e7:3223:4556 with SMTP id d16-20020a056a00245000b006e732234556mr29844pfj.32.1711041941573; Thu, 21 Mar 2024 10:25:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711041941; cv=pass; d=google.com; s=arc-20160816; b=WtCZcfW+o81LErlE83mAHMj0VM+Xh7hTkZi1fxMQEG0QO9Bx75Z2LcdS0xrF7Z/loh SldvaAfgdy/zUjWGXrPrypM2nHXbDZPd49YJCs1dLipoV7Y2XlvNnKx0uEAy544my1Jf Wwuv3Iex9SGhWWI55GaXwXdisjyl7ng8CGulFG4CYGcba4kngZD65SR6abr0argsWQCM hLIYV67dfpZi+GyuDNpkSN3E1nrKMttWPEYCtPKHzIObPS92aOBN3UqWy/WNprFMWcMP E90TzcwG86rsmRw/H4qqUAb8x1V7+/viLebZwILNmO93T7LYwGaLDAznoXSYGu7hrBMI K8cA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=Qo9mMSGx7QajV7bCzrO3ztwep9cWX2uWLy8Urn9DG2g=; fh=w+4rHgHXlU/wdw1gbZcaN+LRK6k7FVW9MN186O2816I=; b=wKvk7mFkm/fcTQLv2LuMDG6OLWHvYthbRZO+FhK/P4qsOK9jGe11kZHTVb153vk9Mo yLEz6L1npgtA4Z+eD2oP27rvUlLOiS87bedfoGaEno6XWY7CpOkk4U3PiwOtbRKnqGs7 YT/ZUVO202R1n5wZdlaFQoRta4FLDc3svxea4xZVsGEspCJGF5qGjVSUMn8Sg2opDMzW aemkKCCEx6Io0qAE/3V8Fvs8dySknYKMTYK0ygVi9xMS8wTW07K0IIqBPAqcS2mXfIyV HRfAnncz/KN59ukh/lZL4h412qLuxu1jyK61VQ0P150dRx1uSksePKjucaFRTvEhIVPr lDSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uQevDAax; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110492-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id fb11-20020a056a002d8b00b006e6c71e1d33si130480pfb.165.2024.03.21.10.25.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 10:25:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110492-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uQevDAax; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-110492-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110492-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3C9A128280C for ; Thu, 21 Mar 2024 17:25:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6708712BF3E; Thu, 21 Mar 2024 17:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uQevDAax" 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 6C3FD79E0; Thu, 21 Mar 2024 17:25:27 +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=1711041927; cv=none; b=MDqT6UoiLqk/wN1WQ1KdpMdhqihyZOGCtNURRbC83n2Q3vmmL6QofefPZPh+UFGJ2E+WeZmF/031n0ALV9+x7uLZSvQrxzkw7GcTlXSNGbN0XNCaOw8RBERjEbWcJ/Oa01qlvBdKpU+947CK04FYlvaS4f62VO/amVhSjM2hp4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711041927; c=relaxed/simple; bh=iNXaAGwm6iS6DNKISF6dlrJY5wNVKnpnm8REwy4rDho=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=ZlrxG4ckuZ8goLtQ3Em9Yp1/x2MZLfQKcZBNJJRM1Mb3vNory2jOJCXysSu0vJiZhxeJA0sblwHWyEal53rf1STgifO0GY5glb7rHOIhY0wEzcByhjLfmSBat936BVoHSNLC+bg6+vk5KVlv6Cm5OI7VSc+5oY2gGUDKiB9Amaw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uQevDAax; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 073E2C433C7; Thu, 21 Mar 2024 17:25:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711041927; bh=iNXaAGwm6iS6DNKISF6dlrJY5wNVKnpnm8REwy4rDho=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=uQevDAaxSvs1weuPxAVtTq79oE8xNAAlm00KgUZtg+SF0ZCpdazoYqldu4ms40wTI KdBcq8uWAD47/rKzsT59SMSEtZvXIWGj+5CJdnbpCRBT7JEP/03D/qAdLGr6V1WR1O tKmQl20Xe9j84FJNztEGGULdS8/DLACS1ZZirVT9+YuBlMkeNH6yshOtZFYcoGOQ7c I87pEcsouNJ2soJeKDqyYmUarFAbdb9NjQvdlnXKq82l4NPh+I1KSlj5wGFMn4Ze0w 1SfpgXrWpNJ2W3SvSXv2vZ0wLvpr77vGmkJjpJhw4mdXecJniydVNE2PwYSrO+l75f cX/eY3iu0uHhg== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 21 Mar 2024 19:25:21 +0200 Message-Id: To: "Fan Wu" , "Paul Moore" , , , , , , , , , , Cc: , , , , , , , Subject: Re: [PATCH RFC v15 12/21] security: add security_bdev_setintegrity() hook From: "Jarkko Sakkinen" X-Mailer: aerc 0.17.0 References: <1710560151-28904-13-git-send-email-wufan@linux.microsoft.com> In-Reply-To: On Wed Mar 20, 2024 at 10:31 PM EET, Fan Wu wrote: > > > On 3/20/2024 1:31 AM, Jarkko Sakkinen wrote: > > On Wed Mar 20, 2024 at 10:28 AM EET, Jarkko Sakkinen wrote: > >> On Wed Mar 20, 2024 at 1:00 AM EET, Paul Moore wrote: > >>> On Mar 15, 2024 Fan Wu wrote: > >>>> > >>>> This patch introduces a new hook to save block device's integrity > >>>> data. For example, for dm-verity, LSMs can use this hook to save > >>>> the roothash signature of a dm-verity into the security blob, > >>>> and LSMs can make access decisions based on the data inside > >>>> the signature, like the signer certificate. > >>>> > >>>> Signed-off-by: Fan Wu > >>>> > >>>> -- > >>>> v1-v14: > >>>> + Not present > >>>> > >>>> v15: > >>>> + Introduced > >>>> > >>>> --- > >>>> include/linux/lsm_hook_defs.h | 2 ++ > >>>> include/linux/security.h | 14 ++++++++++++++ > >>>> security/security.c | 28 ++++++++++++++++++++++++++++ > >>>> 3 files changed, 44 insertions(+) > >>> > >>> I'm not sure why you made this a separate patch, help? If there is > >>> no significant reason why this is separate, please squash it together > >>> with patch 11/21. > >> > >> Off-topic: it is weird to have *RFC* patch set at v15. > >> > >> RFC by de-facto is something that can be safely ignored if you don't > >> have bandwidth. 15 versions of anything that can be safely ignored > >> is by definition spamming :-) I mean just conceptually. > >> > >> So does the RFC still hold or what the heck is going on with this one? > >> > >> Haven't followed for some time now... > >=20 > > I mean if this RFC trend continues I'll just put auto-filter for this > > thread to put straight to the bin. There's enough non-RFC patch sets > > to review. > >=20 > > BR, Jarkko > > Sorry about the confusion with the RFC tag =E2=80=93 I wasn't fully aware= of its=20 > conventional meaning and how it's perceived in terms of importance and=20 > urgency. Point taken, and I'll make sure to remove the RFC tag for=20 > future submissions. Definitely not my intention to clog up the workflow= =20 > or seem like I'm spamming. OK cool! Just wanted to point this out also because it already looks good enough not to be considered as RFC in my eyes :-) If you keep RFC it is by definition "look into if you have the bandwidth but please do not take this to mainline". No means to nitpick here... BR, Jarkko