Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1871565ybl; Thu, 30 Jan 2020 07:29:09 -0800 (PST) X-Google-Smtp-Source: APXvYqz/fJVjAvD1Z4/K9LcAuH7dWlEMyby1aJ0SkDiPjXyOXoRKbumgCYG+1ndqxGhF11xj04sy X-Received: by 2002:a54:450f:: with SMTP id l15mr3317601oil.126.1580398149321; Thu, 30 Jan 2020 07:29:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580398149; cv=none; d=google.com; s=arc-20160816; b=NT4Xv+qHtVPh7og2cx5I4oxuL0jA+N+bWQcTgqOLa9qKw6BtveltLqI+4MBPC8t+U3 1RZry84W7SdAlieF1GaOWaPGTs/O8chSWvAv5UQXfBKqW3zSFD5Wn9jieZ+PJcjCIWDj 2o4Nd6yZ47uHfVnZC3mpsND6qSOWHRIKusNrclQZzynVBOtwG1ywiywmK+zzS8ctoG2y olsmejd7HoF6nbbiGC+KkvzxLb4gvnPvedHmPEFaVOKY9w1qWSSdkr+4HA/oXa+cNtcB ljnqZC20xxpe48KycBbpUm0XPgyhxnByhAcQPMtz4i36IwXgZLNDA83pHMD56KaI5rGE ghgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=GuAxve2zXWkCTjnqYdgUeI0f73Tt7GAtQrIozTPAfFw=; b=gP4j5A8BtH7tr+gZSjvavZxCdSJL2l9+5T6FWQFJyZhCqn7N5Ip+X0If6bkhLE88Tb UnQ++vvLWKAE6vxFc1R3w0z6mDeB+LCR9RSp23hkOpFGcPDV3J6fXHXq/BkK2oCOlRYp AN/+RaPFBeS8XHvnii4d1G9GsQ8hPOUXNSxdQUrXbbLP0MWU5ixp28XzNDvaCZ2Bcx1p ktNfJJ3y8udrqsWe6878HYHorHSx2gJrLN+WHTxo8eBviIgyrefOXPNDLDaVRE8RLVDt NAKEjhJRiS2blEYoCAVBmEZ1XhOelHAo6Evmerf9hJl8NUa70ms2dtjgI5GT9f1Dsinn i+hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t18si3383283oth.110.2020.01.30.07.28.57; Thu, 30 Jan 2020 07:29:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727283AbgA3P11 (ORCPT + 99 others); Thu, 30 Jan 2020 10:27:27 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:2329 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727186AbgA3P11 (ORCPT ); Thu, 30 Jan 2020 10:27:27 -0500 Received: from LHREML711-CAH.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 193B34E794727836E010; Thu, 30 Jan 2020 15:27:25 +0000 (GMT) Received: from fraeml715-chm.china.huawei.com (10.206.15.34) by LHREML711-CAH.china.huawei.com (10.201.108.34) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 30 Jan 2020 15:27:24 +0000 Received: from fraeml714-chm.china.huawei.com (10.206.15.33) by fraeml715-chm.china.huawei.com (10.206.15.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 30 Jan 2020 16:27:24 +0100 Received: from fraeml714-chm.china.huawei.com ([10.206.15.33]) by fraeml714-chm.china.huawei.com ([10.206.15.33]) with mapi id 15.01.1713.004; Thu, 30 Jan 2020 16:27:24 +0100 From: Roberto Sassu To: Mimi Zohar , Petr Vorel CC: Jerry Snitselaar , "linux-integrity@vger.kernel.org" , James Bottomley , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 1/2] ima: use the IMA configured hash algo to calculate the boot aggregate Thread-Topic: [PATCH 1/2] ima: use the IMA configured hash algo to calculate the boot aggregate Thread-Index: AQHV1SsskZfHgOFdME+uHgUEG6qPTKf+632AgAALuoCAAkpuAIAA8HoAgADpZbA= Date: Thu, 30 Jan 2020 15:27:24 +0000 Message-ID: <2e3ec5f5a4e748a898baeac8a88487ab@huawei.com> References: <1580140919-6127-1-git-send-email-zohar@linux.ibm.com> <20200127204941.2ewman4y5nzvkjqe@cantor> <1580160699.5088.64.camel@linux.ibm.com> <20200129083034.GA387@dell5510> <1580338276.4790.8.camel@linux.ibm.com> In-Reply-To: <1580338276.4790.8.camel@linux.ibm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.220.96.108] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBsaW51eC1pbnRlZ3JpdHktb3du ZXJAdmdlci5rZXJuZWwub3JnIFttYWlsdG86bGludXgtaW50ZWdyaXR5LQ0KPiBvd25lckB2Z2Vy Lmtlcm5lbC5vcmddIE9uIEJlaGFsZiBPZiBNaW1pIFpvaGFyDQo+IFNlbnQ6IFdlZG5lc2RheSwg SmFudWFyeSAyOSwgMjAyMCAxMTo1MSBQTQ0KPiBUbzogUGV0ciBWb3JlbCA8cHZvcmVsQHN1c2Uu Y3o+D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