Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2745266rda; Wed, 25 Oct 2023 11:01:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzP2VJbf1t8tNmebRyjKBWi82e00nM1TugrABtx3HrBj0J09lbKUoJuRr2dlWkM/4GehAD X-Received: by 2002:a25:e908:0:b0:d9c:aa29:6180 with SMTP id n8-20020a25e908000000b00d9caa296180mr14754020ybd.46.1698256912763; Wed, 25 Oct 2023 11:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698256912; cv=none; d=google.com; s=arc-20160816; b=PS5TZCtrOJ8tfTnAnzBLsJuZ6i/AGQ+sKZlavPSG18EJ8qz7IkYXQx8woxDXkky0lu Or20IKtbl3noOQJEUQZ3J9f6D159VqOoBcq2pRZhXvU8R4qMJ1djvoSe74m7ofJoEVE9 PU9H1ygK/GZuktCh6Igp6RRr51Hpm58j+RO0ID6bnOF8RWAD96FDuAGwOxk+sxD7HvvM Rf8katYecNMD5CpFgrJcKPh07IKdwLV7OGZrPqXItpZ2xANoZnJuIcPNx7IuKBXiTrWv CVZxHlBI1mCMPzPAgWITcIvw5HCYzFG5+3tcLK+n3JbdoURyKyOxL2yclyHy9CU0Vnay Gq3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=S3E5OHSsLvkSVq5CBpCHcR3UqUEpCAQogTfCqA8nkoI=; fh=xt1kGAt1ieoIWnmuA9cnQznT685YloknolzH9mxUKho=; b=cluZt1T2WaWPWGAXaRP0AQFLNKdgavj00ZTigV+LdKGfG7na/rVsrpSvN0bNEVl1J2 rH88q4IT0sEzkvXBmaDcx6L1toFViPFcYG7XBOsix2g1+juWD2cYcKAp7zE6iMTExv3A KnvuGel3SFFxmKFlsbNHLRkPCY/RAnjaKmbDdUfNkZhe2bdzPF5Bn6Ops7HzWSwSAhyq rHvlFcfAV9Ai9Q37dWTUDzoJDVMiujzjt0vamkt9j92wWm7MU5mAx3OkJyNbPo8ZXp8S fy5R+YjtFErclHJk2BbeXyBKLSWk/NSawzyez+euowbfWh0Y6YmUlqQY6dlDlAj/Jk67 zCOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=NkxwAAV7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i125-20020a25d183000000b00d817bb25e55si11151956ybg.245.2023.10.25.11.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 11:01:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=NkxwAAV7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 82D0A8023A24; Wed, 25 Oct 2023 11:01:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231469AbjJYSB2 (ORCPT + 99 others); Wed, 25 Oct 2023 14:01:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjJYSB1 (ORCPT ); Wed, 25 Oct 2023 14:01:27 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD1DBE5; Wed, 25 Oct 2023 11:01:25 -0700 (PDT) Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39PHnfac028294; Wed, 25 Oct 2023 18:01:19 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=S3E5OHSsLvkSVq5CBpCHcR3UqUEpCAQogTfCqA8nkoI=; b=NkxwAAV73nFNwisl1U7c7ShrD0ZiV0v10tv73aQyGMS7Iu/mzxOyofjEYdDvW5rQmUNU VwjWgkbfn00aK6qBIG4os1uUllKPysr5Pc5O9+59H1DcQ24X0azrMncw5uwSOX2OefZG H57cHeL4TmIn2CvsNI+o5wZvzAqvCsGrZmkf9EAAuBNChabRpy78CcMjjOS5oO9XeE0K jz9Z+0ag9BZJZAI6RN9bLWdc0JsUS/kMSoGAsp64CM/P/nvg7oO4mubtAcuOTIsmu1tA F7ip9WpOCKR6Gj7JVYzwFV0oqAM84Opd05JFaG/VvgBDe4bF6bPbtHTcGto0yVk/aAJT HA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ty7rt8dfq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Oct 2023 18:01:18 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 39PHoU2t030652; Wed, 25 Oct 2023 18:01:18 GMT Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ty7rt8df7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Oct 2023 18:01:18 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 39PHZj84012336; Wed, 25 Oct 2023 18:01:17 GMT Received: from smtprelay02.dal12v.mail.ibm.com ([172.16.1.4]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3tvup1yyce-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 25 Oct 2023 18:01:17 +0000 Received: from smtpav03.wdc07v.mail.ibm.com (smtpav03.wdc07v.mail.ibm.com [10.39.53.230]) by smtprelay02.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 39PI1GWr48955848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Oct 2023 18:01:17 GMT Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C86C758054; Wed, 25 Oct 2023 18:01:16 +0000 (GMT) Received: from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2353B5805F; Wed, 25 Oct 2023 18:01:16 +0000 (GMT) Received: from li-f45666cc-3089-11b2-a85c-c57d1a57929f.watson.ibm.com (unknown [9.31.99.90]) by smtpav03.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 25 Oct 2023 18:01:16 +0000 (GMT) Message-ID: <488442598c3703760ed6182426ed891f85fe0a1a.camel@linux.ibm.com> Subject: Re: [PATCH v3] ima: detect changes to the backing overlay file From: Mimi Zohar To: Eric Snowberg Cc: "linux-integrity@vger.kernel.org" , open list , Raul Rangel , Amir Goldstein Date: Wed, 25 Oct 2023 14:01:15 -0400 In-Reply-To: <485C9C57-ABF1-4618-81D1-345597A1B9FA@oracle.com> References: <20231025143906.133218-1-zohar@linux.ibm.com> <485C9C57-ABF1-4618-81D1-345597A1B9FA@oracle.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-22.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: DW2-vXhn9iiqXKfJd9Zt7NUDllj0fqj2 X-Proofpoint-GUID: GVfTRXIF0kpJbO-msQSx2OnkmbDpG0Ib X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-25_07,2023-10-25_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 mlxscore=0 suspectscore=0 adultscore=0 mlxlogscore=987 bulkscore=0 clxscore=1015 malwarescore=0 spamscore=0 lowpriorityscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310250156 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 25 Oct 2023 11:01:34 -0700 (PDT) On Wed, 2023-10-25 at 16:27 +0000, Eric Snowberg wrote: > > > On Oct 25, 2023, at 8:39 AM, Mimi Zohar wrote: > > > > Commit 18b44bc5a672 ("ovl: Always reevaluate the file signature for > > IMA") forced signature re-evaulation on every file access. > > > > Instead of always re-evaluating the file's integrity, detect a change > > to the backing file, by comparing the cached file metadata with the > > backing file's metadata. Verifying just the i_version has not changed > > is insufficient. In addition save and compare the i_ino and s_dev > > as well. > > > > Signed-off-by: Mimi Zohar > > I ran the file integrity tests that originally uncovered the need for > "Commit 18b44bc5a672 ("ovl: Always reevaluate the file signature for > IMA”). When the backing file is changed, file integrity remains. For that > part, feel free to add: > > Tested-by: Eric Snowberg Thanks! Mimi