Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp815970rdb; Fri, 9 Feb 2024 01:52:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5oBP70UtKQT1ovJ5XRTguyVwpyxa7QMgWHuEJ9rIumvhHGwtzbbFe7YHlQXEsFCudvhYw X-Received: by 2002:a05:6808:238b:b0:3bf:3876:2cda with SMTP id bp11-20020a056808238b00b003bf38762cdamr934569oib.26.1707472346145; Fri, 09 Feb 2024 01:52:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707472346; cv=pass; d=google.com; s=arc-20160816; b=eQNcn9g8IMZS4+KODhS1n9eT/wxP2ZJy7jVdOuiV9WnOrQd+7qq9lTj0bNLRY66DrN V09+7c2CPXGmdlzG2s5wm+2r2XumfyrFdkRMgGRQiYUWUZup8h2KjHtwKTwyV1kIceqa 1ikgFV1eIah+CoaZYZvamdEumaaoaeP/gv5Jshi8mmuxxo3kK6jto05yQXUSKy5wZ41n WgJLfacedneE4rvqWzXnzEIHrrfqglvjIOIbBMI89zRurWZnFBrqfItOtFtzWtPs60Q8 wj2zDDpfxsqWCbp011hJ5d0h/oJ3ryr0/MrLPb5SY+x9D7qd/QR/5lCIzUAzT+TaZnK7 GhXQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yYwdGDLTRaWzO51XcoRkvkal879wAS13UKfOmAX31ZU=; fh=ujyEWm8DIu/HpJWfNpbga26xO+dv3tySuei9sVQwK9Y=; b=slwPmmwhxG6yHxny8aZHgU19CyE6SBBl6c5h8pv4Fag6K0OnLZoXml7qZRxUg/x17l wgbUjw2QNN6FlUH9Y/nCRLisdpDQJzifm5Z7jo8sYu/1n/qJBhGbRroHJDChLpCYrrkI GSD8A7TnaxCCDOf5h/xurqHc4KqHflFsGuHMKx2rOzG3agiWhGw5s393oWw5/go1Jc6Y oo43USlOpDeIofO92N7BT9ifeqKeP6/+HIz2JFhJen2E5bbWXBA7qvXs201kmOxYgHrK j85wntE/Sn0axGJbY42YfjcbggeznoH6UCr7/TXMmeeUwrG704t1Abt4FQ4XNKQOJZ3R 9GYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jWD+PSJt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1876-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWUmSZE/o2kbD23+Cbnlay8t1fNPATG5QF6jUjwcBx06erLYR3DSOP+TtucBjGqfG73hDs7u9IRCcsoUbA+z5cT4+2wRw7aNPhmhOPNJA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g22-20020a056a0023d600b006dfc312f897si50281pfc.50.2024.02.09.01.52.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 01:52:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-1876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jWD+PSJt; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-1876-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-1876-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 C6A79282725 for ; Fri, 9 Feb 2024 09:52:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E60E67C5D; Fri, 9 Feb 2024 09:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jWD+PSJt" X-Original-To: linux-nfs@vger.kernel.org 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 C590DA2A; Fri, 9 Feb 2024 09:52:21 +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=1707472341; cv=none; b=VuVyaU9uhWIt21ZXlvDoc5dwStP9M2guDm5QdvqUJF0EyiDNyLIM3g/H5FOz6uMCCuGOcT/OcKLUEgfhM5tStlgVlsuqMHyUwmiqBRR8pqNCv1KJ/FoxarCE75f1lLlPE5qIEuHQyN8pFls6A1o4+vfCXD5gYtA/kjHJN0P10H0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707472341; c=relaxed/simple; bh=HBuy4+FyarlMIkakKm+gcSj2tdXPC9SwD5fN9HJf71g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H68Zzbdp+mH4Cwsh+G7pk9h0gOvvzQ8hEnoXg7tvI+tMSuhCTPTtFBmFv6xH1BBDWFDGX0ETeCZikSr+VlLf+hQ9jQXydJP8Wt1FvsAjDvufGLuautmq/g373SskoRHF1HAhwZ4NQUbu3edFBr77xuhgskFe8WDeSW6wWlfDoDY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jWD+PSJt; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ECD0C433C7; Fri, 9 Feb 2024 09:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707472341; bh=HBuy4+FyarlMIkakKm+gcSj2tdXPC9SwD5fN9HJf71g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jWD+PSJt3YwjiKjRzpjSiCqnbeBB0VXyANrDEziqDA4bC5rbN8cTl/Xr9tY29L+fh Y2ImVan6/xVkC9DpJ0W+myNU+Rp/bwfSYONuQsSEwXpdJIgTAURqn8IdL0iDRud6GY 0LYFj5b0p2LyQ0wnarpG1sUhH8t/q9jB11CfRmhnVGOfciUzhOdKf2wdpOMZH6nWEC mo/d1oCa85kVQwU+V0/+ya1cbBZZye5SRSWAgF32YVncIouaHAzoJHGIKuuHjQTmu7 WDNGFgrcJvMqtg4f9B8HhEGiQBz7baelIKmeDitdNhYlQfzq4rhEp/H3mkmlOai0wm FrVRsNaHJfSNw== Date: Fri, 9 Feb 2024 10:52:10 +0100 From: Christian Brauner To: Roberto Sassu Cc: viro@zeniv.linux.org.uk, chuck.lever@oracle.com, jlayton@kernel.org, neilb@suse.de, kolga@netapp.com, Dai.Ngo@oracle.com, tom@talpey.com, paul@paul-moore.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, 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 , Stefan Berger Subject: Re: [PATCH v9 17/25] security: Introduce inode_post_remove_acl hook Message-ID: <20240209-gelee-parken-3ecebd605e73@brauner> References: <20240115181809.885385-1-roberto.sassu@huaweicloud.com> <20240115181809.885385-18-roberto.sassu@huaweicloud.com> 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 In-Reply-To: <20240115181809.885385-18-roberto.sassu@huaweicloud.com> On Mon, Jan 15, 2024 at 07:18:01PM +0100, Roberto Sassu wrote: > From: Roberto Sassu > > In preparation for moving IMA and EVM to the LSM infrastructure, introduce > the inode_post_remove_acl hook. > > At inode_remove_acl hook, EVM verifies the file's existing HMAC value. At > inode_post_remove_acl, EVM re-calculates the file's HMAC with the passed > POSIX ACL removed and other file metadata. > > Other LSMs could similarly take some action after successful POSIX ACL > removal. > > The new hook cannot return an error and cannot cause the operation to be > reverted. > > Signed-off-by: Roberto Sassu > Reviewed-by: Stefan Berger > Acked-by: Casey Schaufler > Reviewed-by: Mimi Zohar > --- > fs/posix_acl.c | 1 + Acked-by: Christian Brauner