Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1884016ybl; Thu, 30 Jan 2020 07:42:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwOtrWJ2x2Sq1RpggLXxlGw0CMaoyxjBW15xLCW/aGVx/BO1H35CB+YJYmJo8AfiNKoB6b9 X-Received: by 2002:a05:6830:128e:: with SMTP id z14mr4011774otp.184.1580398924736; Thu, 30 Jan 2020 07:42:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580398924; cv=none; d=google.com; s=arc-20160816; b=BfIMVbfdBHGKcnInqwQJKO22tTeTOYUd0yyQ3wO98gW5lS7B6aj+J8Jbg3JvfcV7mK 1y6rLTY/Sy5BAuzCYyOATb7n5mhe2CmwhUMobbkqF94Ln714VIFpNfjESD8jkHWO6y9A ExRuLw7R7+UTj+SRFGqhiyzL8kC28auXbLUnCdFmsPhw4XgDDfIaadbHLBqWWn2WYIsa 5u7iu12WqsCgsjoKXxCr63dJLpl4P7MQabXpVwUBT2P0oRRzgeRnfjMxhu1gXGEny9n+ YGjo/BjsGct8Rm2HaDDEU8CbT+R+AqJveInDrD0XwPKSfMQ+GEb7BuGRhdLhhI/Qfy97 VjRQ== 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=iVh6mgGfKloAr0UtjcePjVc5tX3JEeyTqBBSKmBpjlM=; b=v5YN/8PzN3Xi2MTvjfiZ1Vauq5NcWWgYZVybbE/91Ga6lDuqjHnrNH2kYkJ3u0MYlO UIwL+1UtSKQLl0q6opQkvofMgps68u7/Si2yRHKkXqdPHgS4bscxKbj+EH2QmHZuWkzu wSqZ/ZP93MrjcfVLiZ7Fr2PEYR9DB2diBqst3yh7cSovi4xZBEL8ecvqB7qdflLH/VxQ zTGu+QTRzA968sjs3GrOHKe1deu8M3XYNwb19egK4GbLuFCCj+l4sOUIGughbJ2NHJga dSHqEOs2DgWpZDx9+9Wz957Z2RULXYHnn3fG9LyDJYJwrHhXMixSE2JwQfEQ2ZAoPyEU um1Q== 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 w207si2909641oia.226.2020.01.30.07.41.52; Thu, 30 Jan 2020 07:42:04 -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 S1727309AbgA3PlB (ORCPT + 99 others); Thu, 30 Jan 2020 10:41:01 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:2330 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727107AbgA3PlA (ORCPT ); Thu, 30 Jan 2020 10:41:00 -0500 Received: from lhreml702-cah.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id BCAF478D3962AD087CBC; Thu, 30 Jan 2020 15:40:58 +0000 (GMT) Received: from fraeml707-chm.china.huawei.com (10.206.15.35) by lhreml702-cah.china.huawei.com (10.201.108.43) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 30 Jan 2020 15:40:59 +0000 Received: from fraeml714-chm.china.huawei.com (10.206.15.33) by fraeml707-chm.china.huawei.com (10.206.15.35) 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:40:57 +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:40:57 +0100 From: Roberto Sassu To: Roberto Sassu , Mimi Zohar , Petr Vorel CC: Jerry Snitselaar , "linux-integrity@vger.kernel.org" , James Bottomley , "linux-kernel@vger.kernel.org" , Silviu Vlasceanu 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+632AgAALuoCAAkpuAIAA8HoAgADpZbCAAEAyAA== Date: Thu, 30 Jan 2020 15:40:57 +0000 Message-ID: <43d93cbe8ab04182bb6d8579e8499634@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> <2e3ec5f5a4e748a898baeac8a88487ab@huawei.com> In-Reply-To: <2e3ec5f5a4e748a898baeac8a88487ab@huawei.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 Lmtlcm5lbC5vcmddIE9uIEJlaGFsZiBPZiBSb2JlcnRvIFNhc3N1DQo+IFNlbnQ6IFRodXJzZGF5 L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