Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp18324rdb; Wed, 7 Feb 2024 19:18:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX+cJ/GRdnNLvZzHR+fOc/PQFgRJPYtTvF0yYPn7jdb2B1kJqEMH3jj0prjbntH+TwGB+AdsBpeAIIErQr5c9fxHeg7Um1Lea5DvR6ccw== X-Google-Smtp-Source: AGHT+IHyIoNzPp9AGhPHx8d5gJrcFv4Y19tgXk7l/QVOaWbeBnrXb5Za7VEZwGN18mDqGr7zt8U7 X-Received: by 2002:a05:6102:282a:b0:46d:3585:532b with SMTP id ba10-20020a056102282a00b0046d3585532bmr4388771vsb.26.1707362321940; Wed, 07 Feb 2024 19:18:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707362321; cv=pass; d=google.com; s=arc-20160816; b=pdb9yKKhyYa5/R12oEuAiQuU/G6QHNfSRuJrRkQ8mKordc4PyTEatH3EoBAsmxyR9a 8oGze12SDo84jNSCikoZvIaadbQJ44BVZJmBPzOhCgfBT2qXRLSbotTeJP+NjLv/2Htr 95DFuaLP4uc1MyE+468SSav8JMT2zUj21WrqV0YwGQNmp+toG2Bcb5S+VKRYl4xtvI1l uu3Prudy3mVRdgL/JqlEpAHrgWe32v/qlUY3xSLwjFK7m3L2SdyVtsfuOjmw6YJ6IIvD hKCaCZQEIgPZv/vaSmVL+r9upI2RFuvq328ZBnS/pQYmlJOqIjOk0YdSlCbAEkveC/tc yINg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=hK0BeESH0EV8j47xzGv04cLJ4LIyRw2g36A76+PXBk8=; fh=tzr3yrVlju2bsS5DehOVDeHKhxBZV+yuNZyfwmAtVz0=; b=Uk+9NIxBPVTKsu9h8Zk8c5E66qcqVC+iaExxc4IL2eDzsA+pW/jxSPLSDUTkn1yWZo yDxZB1C7M22iLdYBHjDg2DrXRo1zhQP4HD+5jCjdxGwer2u/IKvadsC9WR0KbH0MkXFq pO8tvkQuMPzPray9P1UFRONCtshBQuxWXz+7HyhKuLDI2sc9+v6NMvUeQndSzulNl6x1 guyXEZklGD1oO88rOdvoGR5/B3yg0t6g9raX5hnoG/R3Yny/pdDOQ5TWjFYDBiMnnqKX HMH9wVZPB7y/0cfhJeG1E/EjFhQ03AWr2Jt8FGzsiFhWwYWfFOl1ThENccoN7P6tvFIr rwJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=RBYcfQLZ; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-nfs+bounces-1830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com X-Forwarded-Encrypted: i=2; AJvYcCWM2FxzA9QrcedHUeoBkoLVojLhYi+P07VVcuUInA+RJmH/EkYfgQOYNxFu6SLpYDG0KX7TbuO5Gxxr+XqNUxSyrvG2PI+EintyecalTA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c23-20020a056214071700b0068ca72d5a2bsi2398327qvz.509.2024.02.07.19.18.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 19:18:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=RBYcfQLZ; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-nfs+bounces-1830-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1830-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 880AC1C22CE2 for ; Thu, 8 Feb 2024 03:18:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76FF21D693; Thu, 8 Feb 2024 03:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="RBYcfQLZ" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-qt1-f173.google.com (mail-qt1-f173.google.com [209.85.160.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E2341D52A for ; Thu, 8 Feb 2024 03:18:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707362315; cv=none; b=mEMXQ50eKLs/JQHSSnjPmJ1ZvtEh5H2MKvd8IaZF5kDJRSR366Nl7VYgRKZJLIAotAjCNxJ7Ved2yGMJA22KwkD0T+6AsYxp4ubN3pwodX/1lNvam30o4lGYe0+3wFuNCkMi5LhekB4K40cmqmG5XlUY0rHzh4poXTmv6CQeZyE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707362315; c=relaxed/simple; bh=CwXu+mEYRI9NtMHVFqk3Ff2/WozQDRsM1R/qG5WWA8w=; h=Date:Message-ID:MIME-Version:Content-Type:Content-Disposition: From:To:Cc:Subject:References:In-Reply-To; b=bcJ7/vLExo6K1CGoOHYITDAazgrTvGhQ9oZEufpaTvP9w7XTpDSKNif5w0/zytu8RCUZKXINJ7ZPcGSCICQPbyUjUxTU3ANAj/6+JTyUL5tEaVEVVbo+uEL9R0dU5ySZF81G5OmtYTSkZlxB4fnT3e2Uu3klcpqS131ZYFIl5+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=RBYcfQLZ; arc=none smtp.client-ip=209.85.160.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-42c3925edebso11342631cf.0 for ; Wed, 07 Feb 2024 19:18:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1707362312; x=1707967112; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=hK0BeESH0EV8j47xzGv04cLJ4LIyRw2g36A76+PXBk8=; b=RBYcfQLZMf5lpVN7fxjLnX2DoVMoSKm+6dNz3zT+9CR45fEDT0NAvMtZmSWYMD0WS4 Nuz1VPnBK2CSkLuq60y0qaUkH5HMvOqNC4oQDKnBTNQzgRohE84R1wN8HCGtViitA/Ka RPdOOsnku53l5/uKuBYdU9Jl7s3PAkEz+Hzb/FsdU036fCh0i0h4VlL4TeOi5v23o4eX K3lfzFTFg5KVng1ZPqzn1qT09KT/mFOyo7RBmSYBBIczy7V3B1qvf7RhqyQc2piqrP86 Um5G5MhCFleg+gSRquvszS0DeHmMIfWHIIRmdhfgQaY5mzE4EfVCfHFdvo6QuVXyOW06 3uMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707362312; x=1707967112; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hK0BeESH0EV8j47xzGv04cLJ4LIyRw2g36A76+PXBk8=; b=Q/7rSMMT247AcOAkQChEu1YxSbsf2pD27sFaTqPySu37rT8oqkW8X7D71YXhKTOPu/ m622OBo+8x8guMc3GH1PEyJ88Gr4KpFYb1EAaIWrPpOWE71NytD/aBqGKGriiLT880ge kpWOg/x8O294yY7z+Joz8ijSFMbKEXRSI9PTMvBHqdvIhe4Uf7s6+m9KpfDHPVT/DXce UWYPTDTjRJGnHVP+D2n2Zb83s/byZTkwyGr0zZr/CFrIaBVm8Cv8ftPI8O90zpImEDiB 39sg+tkaR7u/z8sziL36e9o0NKEe5VqFTnQxlV6eeuOPNjpb8PWW0hv+P4UYGSHgHs2g cU3A== X-Forwarded-Encrypted: i=1; AJvYcCUqK2OuC2DFEPkZxc+oCXLllSytNHL6HRQ4YTrOXEP/5X0qwTGMi8CW8Vuv8T/8V/hHVHTLN+tSE8/ZRNnMVQm8EwfeB6Xe9ACg X-Gm-Message-State: AOJu0YwAM1Yjm3g1zeNl9Y8irsopp2hFde2apx6QCEN/UEVpq1p9GQdh mzZP6o2/N0+bQMzowgFTymDX0LIduO8PN1/RkyTWusJzCYX3JjQDz+e7dTAfxw== X-Received: by 2002:a05:622a:5094:b0:42a:8a40:e33c with SMTP id fp20-20020a05622a509400b0042a8a40e33cmr7154113qtb.57.1707362312345; Wed, 07 Feb 2024 19:18:32 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUevVJKwGdSjfdxiP74JGQH+dsVjTsQ22eS+EDgBhq5kdojHKMCot0Gi/z8CEm12WoDxxkC3fcVtiK1dC0B3jq9yqLGeT5IFivl8m7XQJWgO55sQ9GXn1H7Ahms5bxBd6ZCyxKAdFNl2BYS72MgAwJD8S9UW4n1izwi2zeo/x/6ETDHNdxssLHxhaFub0YwbvtgYkQ+Ts4QIs7hmF61Y0SEo7j5ZG0Xamly6PoTUHvENvAy+ub6SJ4HG1A22OmY8yClktBlY+zrwL3Ab0EVQ+0lI+ybXc96Pd02q8LtBA9SI8XhGCFyO4N68F6edRmx6KaVTqS3OPyjAl2iOkAN2e3UnfK9zHTj/4KCXUV9tyxtLZ9dbGoCXN1hn+ZmobXJRfCWvYks8nMbQXj8Wc/kf7EB42miI/kXnvD8VqHV5+s51PqtdtyrqA5Gz2WNVfPSdGXsBW0LACDd760AbQCozTmHErxN6lEAyEBt03J7rcruNSyNpM6Wn+umVt7c7/VVoivjVOXcU+sxKnheAA2vtSugW1dN38s2OpNzvrFgApBY/MxAf4nddsTPkXLHFoiA6ZYqJJm6Da0e955UOduupoYwOoj0vZF4IZQ8xNOty6rkZ5kRzAGJWo3Paz4OmvTnMBQ+nvI/304hJMLv9S+syJjaw7s9Ze27m3HM28DvziGUmI8ETXbrbIMjexxmysGJIMnpQa3tif2wEvfrl2D6BkN7Dh4pYcvIqjIkwq0sZLEIggav8FBhb83axn0lwmF0E59LNP182o3Lbhyu3ia5Liy98P3Ihe7jst+qOisYHc6KBfQD70sSyyITvsLhAF8CSzxECMO+c1DJ0NNdDiISpQJlXVfA1iJUidOs2SNjtGWBHBJ5cu10lvsZQwX6TACxjEwZhJo+WXEuJQIWx5uasUCUwLZyA6h3QHchFf9sBvNtRjPwoGvF Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id b24-20020ac86bd8000000b0042bed7dc558sm1071255qtt.6.2024.02.07.19.18.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 19:18:31 -0800 (PST) Date: Wed, 07 Feb 2024 22:18:31 -0500 Message-ID: Precedence: bulk X-Mailing-List: linux-nfs@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 From: Paul Moore To: Roberto Sassu , viro@zeniv.linux.org.uk, brauner@kernel.org, chuck.lever@oracle.com, jlayton@kernel.org, neilb@suse.de, kolga@netapp.com, Dai.Ngo@oracle.com, tom@talpey.com, jmorris@namei.org, serge@hallyn.com, zohar@linux.ibm.com, dmitry.kasatkin@gmail.com, eric.snowberg@oracle.com, dhowells@redhat.com, jarkko@kernel.org, stephen.smalley.work@gmail.com, eparis@parisplace.org, casey@schaufler-ca.com, shuah@kernel.org, mic@digikod.net Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-security-module@vger.kernel.org, linux-integrity@vger.kernel.org, keyrings@vger.kernel.org, selinux@vger.kernel.org, linux-kselftest@vger.kernel.org, Roberto Sassu Subject: Re: [PATCH v9 0/25] security: Move IMA and EVM to the LSM infrastructure References: <20240115181809.885385-1-roberto.sassu@huaweicloud.com> In-Reply-To: <20240115181809.885385-1-roberto.sassu@huaweicloud.com> On Jan 15, 2024 Roberto Sassu wrote: > > IMA and EVM are not effectively LSMs, especially due to the fact that in > the past they could not provide a security blob while there is another LSM > active. > > That changed in the recent years, the LSM stacking feature now makes it > possible to stack together multiple LSMs, and allows them to provide a > security blob for most kernel objects. While the LSM stacking feature has > some limitations being worked out, it is already suitable to make IMA and > EVM as LSMs. > > The main purpose of this patch set is to remove IMA and EVM function calls, > hardcoded in the LSM infrastructure and other places in the kernel, and to > register them as LSM hook implementations, so that those functions are > called by the LSM infrastructure like other regular LSMs. Thanks Roberto, this is looking good. I appreciate all the work you've put into making this happen; when I first mentioned this idea I figured it would be something that would happen much farther into the future, I wasn't expecting to see you pick this up and put in the work to make it happen - thank you. I had some pretty minor comments but I think the only thing I saw that I think needs a change/addition is a comment in the Makefile regarding the IMA/EVM ordering; take a look and let me know what you think. There are also a few patches in the patchset that don't have an ACK/review tag from Mimi, although now that you are co-maininting IMA/EVM with Mimi I don't know if that matters. If the two of you can let me know how you want me to handle LSM patches that are IMA/EVM related I would appreciate it (two ACKs, one or other, something else?). Once you add a Makefile commane and we sort out the IMA/EVM approval process I think we're good to get this into linux-next. A while back Mimi and I had a chat offline and if I recall everything correctly she preferred that I take this patchset via the LSM tree. I don't have a problem with that, and to be honest I would probably prefer that too, but I wanted to check with everyone that is still the case. Just in case, I've added my ACKs/reviews to this patchset in case this needs to be merged via the integrity tree. -- paul-moore.com