Received: by 2002:a05:7412:9886:b0:f7:18da:975a with SMTP id ji6csp3210324rdb; Wed, 20 Dec 2023 04:35:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEhZm+8qvrny4FFueD++L3I3hvH8I3KklKGjIswWN2ftSfJm3n6G8ZOm18VfTK9l6Ksd1xd X-Received: by 2002:a05:6214:2468:b0:67f:62c6:dc61 with SMTP id im8-20020a056214246800b0067f62c6dc61mr3005052qvb.69.1703075752736; Wed, 20 Dec 2023 04:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703075752; cv=none; d=google.com; s=arc-20160816; b=V3uiEKxYOSPr5XCx0OZyuGoUmz1vXtwt5743jAIaqFM2BNhLCdgbbObUs66iaWtuUv UZukD3BpxSU764AxisVl32UpicvL2NPNcDssyO/tteOxfGmfaWsR3p7dmw40dwP0sCNV Lv94qaWg+zvJSY8+zvHfPDYg6fUgMdZW3LV9HjrGB71hmfqOywol0dvvoZ3ruiGC4Z4a I1GpsrQpXAEHzV1avNaUw6SIh4eYahvZJD+XwLQJCh/vkwy9L0bLZiEYEcS+txOxDQlh lky64bXn6EhsHeQFVw+4LlnJQ7M50B5rt2O3rhNtJAeJl/qBQQz8+Ll1M4DSx6EqQ7dR zqwQ== ARC-Message-Signature: i=1; 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=WH27MgaGTjybLmQXCx0+mCcW0PDfaiZc1Zldf9hX7jc=; fh=S8p6siOHu0eDUGBhX+0rInOZHLysyokX+wcZX50n7mM=; b=rxwKmIjDe7XYchf/d59xMTBdButQ48BosepVBrZD3EZt7+7w+e61+Hm5XFSDgk3SCb 86KUdHJPHcbKbF3oVybZiOBgUckQ4VKD/NNX/bPNUKPkqrmPkTMUIScMiY+dhxERWImD 2XWE7ZKuAJ5VDAToHP5EvmmFRze4DXkwgf6yxHqo4AgkUNBbzmKPeG5W952JY3SGV2va iKRl15xcAp5pmZ8avfd6R5i32UnCfDsrU8Wtl1i0RvKwFznSiqHGvX1VzVgDEC/Ot+DT FP18PxQGzMJqZn5eJ7E7XPYeIJiDMnxnUIANh2UjECjsqlMQoBoY6THE5o7kx6rD/K/2 1Ldg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GnQfeIFh; spf=pass (google.com: domain of linux-kernel+bounces-6900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g17-20020a0cd7d1000000b0067ea9f6bb5fsi27889063qvj.485.2023.12.20.04.35.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 04:35:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GnQfeIFh; spf=pass (google.com: domain of linux-kernel+bounces-6900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6900-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6E1091C22668 for ; Wed, 20 Dec 2023 12:35:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D633F24B29; Wed, 20 Dec 2023 12:35:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GnQfeIFh" X-Original-To: linux-kernel@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 115C5249EC; Wed, 20 Dec 2023 12:35:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B30E0C433C8; Wed, 20 Dec 2023 12:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703075744; bh=DazYu82Xc3x5ePmNeu+4DL1dZDLCKT+ifdIXMSgKMGs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GnQfeIFh5aMCwr1SZ7+UHbfAu//WSPbfx/AHMiIp5LDAQe0j9kMB2jiyfoJn/r7qc KQtP7W3Vu4+3DwMqv0ydOECtUFfnkOX4moQ+xNZ7OfP+/efHXFnfUAUSW0UYBbd0Yr TQ7upPCfIsXAcso2QFlmEbOvhpLoo92MHR/Z9ly6k/eehbLM3I2oHeHkJAB41q6tWm 2N/XFmv/4CPm3Sw4SmULQWICPYJ8R6b4vrSCj3SDDpAJK0FUdlPXZsk7/Ln6TTdypN bX3V44zBnEcJiK8mqUfma05V2PTf99Yh59him/JeLg+LfGeJcux2CUzUnsfiTeBV0b KnF66X8SZie+Q== Date: Wed, 20 Dec 2023 13:35:40 +0100 From: Christian Brauner To: Mimi Zohar Cc: linux-unionfs@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Amir Goldstein , Seth Forshee , Roberto Sassu Subject: Re: [PATCH v2 0/3] evm: disable EVM on overlayfs Message-ID: <20231220-komprimieren-kooperativ-cdb5e8803ce0@brauner> References: <20231219175206.12342-1-zohar@linux.ibm.com> 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 In-Reply-To: <20231219175206.12342-1-zohar@linux.ibm.com> On Tue, Dec 19, 2023 at 12:52:03PM -0500, Mimi Zohar wrote: > EVM verifies the existing 'security.evm' value, before allowing it > to be updated. The EVM HMAC and the original file signatures contain > filesystem specific metadata (e.g. i_ino, i_generation and s_uuid). > > This poses a challenge when transitioning from the lower backing file > to the upper backing file. > > Until a complete solution is developed, disable EVM on overlayfs. > > Changelog v2: > Addressed Amir's comments: > - Simplified security_inode_copy_up_xattr() return. > - Identified filesystems that don't support EVM based on a new SB_I flag. We're wasting a flag for a single filesystem but we do have enough of them left so I think this is ok, Reviewed-by: Christian Brauner