Received: by 2002:a05:7412:d024:b0:f9:90c9:de9f with SMTP id bd36csp59530rdb; Wed, 20 Dec 2023 06:20:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEBObKVaiaRFt9ger4rgIVt0hE9XoyS2A4Q9uGlpeLonBgPcHhZkVbEOkd94DyBRBqG8eq X-Received: by 2002:a17:902:b708:b0:1d0:6ffd:9e00 with SMTP id d8-20020a170902b70800b001d06ffd9e00mr18869871pls.82.1703082000013; Wed, 20 Dec 2023 06:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703081999; cv=none; d=google.com; s=arc-20160816; b=kiJk5ofReFkegtJjIK7H1b7SlNQw0V+JNs/ENekN0eT0HCj/YB7h94uCnSilMIephp qLez7ENoD3ZvNccpFt6Tp7ak5T4zYh7q4NXCCgP6o0dLBfuquxGSDTa9ZDLYSpG3NCpx UwIfY+HhzbJrQdh75e+9abcnleDVp4ykh85omKfpINtcy8g991anV8KPRTJqqjLAWxWK XBJ3oBNcj3q09fMQA7rge78sjQ5vmi050oOyGVB2YS3IF5HpWVpKx/v4CKWs9W2KpiNl MCAdVDaGGPOv2GHGC8Yqh1DB2AdxFYYPZ0xTX0Fqmo241lpXf8Se/thibVd7FCkPnA4r YWlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:date:cc:to :from:subject:message-id:dkim-signature; bh=TkYb/4DF5JuuftB1DBBCZGJSXJ4lwaNv+h8XVPO0QIY=; fh=z/+5UK6tnVtxghzt8VRMJu9qBPLyahnArv12knBNqhU=; b=hG21uMxoaMIgGHCNh1YDbcbnhsZ5EXN9VGORwmkdxFDXmI6PiYm4SsgAcJKwB1uVDv a1BJ3WBuusV3FuqiFa5KuuzKatbVKsNWyCELWqgm2nWGtW6AynZWmr6876Mn36s/5U2q 5yKsqrA2swKaeCfp/T/uwh5g/pY3/9pbC/x0PbohgrDrzrRhlG3a6UFSqEHy9iVmj4kR /RYLWHVf0w9tQTob9fx/j5NWHU0fH3EcL3AbymgszxzY8nm/A7g9mDx7zm5fYV/NfNGk j3F6iizZa8o1z6gQ0gTl+cXHoZsMAI6/5+G4sHjcV2wPNhWMkYhNA+98NRP3R5tXTvsr i4qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="G0hcqa/f"; spf=pass (google.com: domain of linux-kernel+bounces-7049-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7049-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q24-20020a170902bd9800b001d04e2f99b1si21569728pls.513.2023.12.20.06.19.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 06:19:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7049-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=@ibm.com header.s=pp1 header.b="G0hcqa/f"; spf=pass (google.com: domain of linux-kernel+bounces-7049-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7049-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A93272823B3 for ; Wed, 20 Dec 2023 14:19:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EED838F9E; Wed, 20 Dec 2023 14:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="G0hcqa/f" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 2985638DDC; Wed, 20 Dec 2023 14:19:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BKDrT0d024048; Wed, 20 Dec 2023 14:19:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=TkYb/4DF5JuuftB1DBBCZGJSXJ4lwaNv+h8XVPO0QIY=; b=G0hcqa/fSCqNhm/57B/32HWVwyiMZubPlJLc7sEtSoPRn38n/yNqs3C+en7FgGj4b3b8 ygREYN3iUkGZTuHocZ+Zaq+fV1lqLXxufVXMPki4ngqQ+wOJs9tdHAy/EoLfER7+sDuI crY36iIBWqvhCBsSeGXJgkRYKBtKxMWWVaWw3Lv1y88WdK9YqXQ0EhQeRyr+VttJz9DT c6VEHUarWG6D8Q0z4tMLxZXUPnQFtBI1JyH68cCd5BXyqdSG48nlearO+q/I79O8TZdU 1SznemnWP7zrKkzflz9usPBLBStOPVxBEd+sGIqt/WtuPXdqB5ZgE1qSB9sjMLx0N9uE EQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3v41hx0wv9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 14:19:23 +0000 Received: from m0353724.ppops.net (m0353724.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3BKDsM3K027005; Wed, 20 Dec 2023 14:19:22 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3v41hx0wuq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 14:19:22 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3BKDLP18004856; Wed, 20 Dec 2023 14:19:22 GMT Received: from smtprelay04.wdc07v.mail.ibm.com ([172.16.1.71]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3v1pkyxyjx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 14:19:22 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay04.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3BKEJLRo38404718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Dec 2023 14:19:21 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 905115804B; Wed, 20 Dec 2023 14:19:21 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D498A58059; Wed, 20 Dec 2023 14:19:20 +0000 (GMT) Received: from li-f45666cc-3089-11b2-a85c-c57d1a57929f.ibm.com (unknown [9.61.116.58]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 20 Dec 2023 14:19:20 +0000 (GMT) Message-ID: Subject: Re: [PATCH v2 0/3] evm: disable EVM on overlayfs From: Mimi Zohar To: Christian Brauner Cc: linux-unionfs@vger.kernel.org, linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Amir Goldstein , Seth Forshee , Roberto Sassu Date: Wed, 20 Dec 2023 09:19:20 -0500 In-Reply-To: <20231220-komprimieren-kooperativ-cdb5e8803ce0@brauner> References: <20231219175206.12342-1-zohar@linux.ibm.com> <20231220-komprimieren-kooperativ-cdb5e8803ce0@brauner> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.28.5 (3.28.5-22.el8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: yc77YjAOFM9d7ZCNE54es3Cm62roTOBW X-Proofpoint-GUID: RQVNBkl7O8JO40O_WJWtFu95bjBJn_M4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-20_07,2023-12-20_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 phishscore=0 suspectscore=0 mlxscore=0 impostorscore=0 mlxlogscore=780 bulkscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312200102 On Wed, 2023-12-20 at 13:35 +0100, Christian Brauner wrote: > 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, Thanks, Christian. > > Reviewed-by: Christian Brauner