Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp508007rdh; Tue, 19 Dec 2023 05:50:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IFW7fZsYEC4xbi3Zxu9JfCqi0YX83fRWUn3BLKFi515zXCjkhCTLoNnKSdL2Jo+p6GqoN2m X-Received: by 2002:a17:906:5305:b0:a25:491a:31ac with SMTP id h5-20020a170906530500b00a25491a31acmr392146ejo.65.1702993803526; Tue, 19 Dec 2023 05:50:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702993803; cv=none; d=google.com; s=arc-20160816; b=b7u3bZbQB8z8NFj1dIrTsgsKtojHlbIvFoZonZ5WXjJ19EOhRCbalA/9fAbonTXPPG QSy7d4xQVVKYgXDzOuW3+VLTPEO1vsVnBfmOfhEQlvYo1adHgIJaDvc6/vZurmtANS40 x3nZXhu5WmLo10BiI9Fqv8JEbu8cx9d+W40oiEOj85+zGerTa5ODreLTjrBiwqShNqyk m2sXsAKm06JhSeCW6rVntzPFU3kfkJMkJlP8D9cqKxfJK07+T2j0cBPO4VS0ZmD7yI+A +RJl9empLuU3aaQO3gJAaQuR2UKeKrhbs2/DTc2fEfVIG8kvASl5VjeFYHXJXCmFs0xu EZOA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=4N237+y4JuL68L0Vfcja/M7DRPpqMhObSzld6xfYsw4=; fh=ZBPpPifYgbCpe/yi7y7wUsi3FF2eIZhroNksHLLAAZs=; b=Q+9zHy8KZsvKfUVdqgNJ+HoYAA4nYTNHLCc5eHIiBVgW7vYoKtVKmMKqhKC5NnjorW vYjVmwgwGkDNcT7GZK+vGrJy/9ZybKS5d3BXayJUasOkt9uhon0CDZIsu8IFI+VlPjc9 EPLwPIvYCJ4yFJkgVLALpnaPh386ZdqLPZ3P1q8f0zuomM3iRLNDXX4jdlEqI+iUszCL W+LTQ283j3MriSuw+A0WHwv8cap12zcN8OTrfs/pYHiJY1LMvwsFQ7HATyZh6bYHKFM0 yo2anQ9hNxQqrA+cxEF/cVG941/U9NYH5DIt/CosOwGxPDuPWdFl6M2T3XRAqdPdcCBC uLSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=SFjzEG3g; spf=pass (google.com: domain of linux-kernel+bounces-5279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e18-20020a1709062d5200b00a1e30528aeasi4295406eji.371.2023.12.19.05.50.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 05:50:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=SFjzEG3g; spf=pass (google.com: domain of linux-kernel+bounces-5279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5279-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 478E31F24C43 for ; Tue, 19 Dec 2023 13:50:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AAF11B297; Tue, 19 Dec 2023 13:49:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="SFjzEG3g" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 E32EC1A71B; Tue, 19 Dec 2023 13:49:42 +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 (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BJDbkY1029337; Tue, 19 Dec 2023 13:49:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=4N237+y4JuL68L0Vfcja/M7DRPpqMhObSzld6xfYsw4=; b=SFjzEG3gg+UEvbmYcuw5Js2j3UEAF4Z3VwBk5NR2E5zvSP50CjgDSevw4tR8gbmspJB3 RQphETmDz+Yk7IrrQQ6vrkDKnzAP1AxgMoIGyHvTeOWcxdgG4O4fOSYcO0NkO4KW6mDZ xxp8MCPk0kvnIeFCzVEzOY6TaiAzXuwcq2LwlRnz1sPnOhH6rdKmkhMGIAA+DzjkK5Vd iGmhV/uKzjMLPQ2V1UOuN5jb+qAltl8AO9Ebeqs+PjyG56uCKVfxUcfKGBu1PmvdGcKF ch2WEKXtB3Ig/NYlowQiVnusaIJrOLyhstvee8wGOOEQFEf5LBLJDmm9BeeYkBiQVNal jQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3v3c7f8abc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Dec 2023 13:49:32 +0000 Received: from m0353729.ppops.net (m0353729.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3BJDeUUH005251; Tue, 19 Dec 2023 13:49:31 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 3v3c7f8aah-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Dec 2023 13:49:31 +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 3BJCq6U7004792; Tue, 19 Dec 2023 13:49:30 GMT Received: from smtprelay02.fra02v.mail.ibm.com ([9.218.2.226]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3v1pkyr5ay-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Dec 2023 13:49:30 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay02.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3BJDnSgs23855836 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 19 Dec 2023 13:49:28 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 225D72004F; Tue, 19 Dec 2023 13:49:28 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 305AC20043; Tue, 19 Dec 2023 13:49:26 +0000 (GMT) Received: from li-f45666cc-3089-11b2-a85c-c57d1a57929f.ibm.com.com (unknown [9.61.183.131]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 19 Dec 2023 13:49:25 +0000 (GMT) From: Mimi Zohar To: linux-unionfs@vger.kernel.org Cc: Mimi Zohar , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, Amir Goldstein , Christian Brauner , Seth Forshee , Roberto Sassu Subject: [PATCH 0/2] evm: disable EVM on overlayfs Date: Tue, 19 Dec 2023 08:48:59 -0500 Message-Id: <20231219134901.96300-1-zohar@linux.ibm.com> X-Mailer: git-send-email 2.39.3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: CO7rPos_c23hfFuAAoLouGjOZSLhc1Bc X-Proofpoint-GUID: aEYcIDB_FFion9Zow4xPOu-rsQ2zpXWY 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-19_08,2023-12-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 adultscore=0 mlxscore=0 malwarescore=0 mlxlogscore=503 priorityscore=1501 lowpriorityscore=0 phishscore=0 impostorscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312190103 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. Mimi Zohar (2): evm: don't copy up 'security.evm' xattr evm: add support to disable EVM on unsupported filesystems include/linux/evm.h | 6 +++++ security/integrity/evm/evm_main.c | 42 ++++++++++++++++++++++++++++++- security/security.c | 4 +++ 3 files changed, 51 insertions(+), 1 deletion(-) -- 2.39.3