Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4355980pxj; Wed, 12 May 2021 03:59:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLT8KBjxbvsdCYII/FpGl6wjOmWTSTeZ9AT/+uxqs4RWu266Fxk4gnqhnW1BA7s02lr5bB X-Received: by 2002:a17:906:58d1:: with SMTP id e17mr37723623ejs.179.1620817140968; Wed, 12 May 2021 03:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620817140; cv=none; d=google.com; s=arc-20160816; b=MP8K77VtVOPZZxeEmdkfdm2LOWxlzhDS0+pZP5nfSTiMOClcsuITnKEztPoNio6JV4 ILSMzqIL/KDv5ZnLFgKUxYRbw/KJmX6JG690b13GUrMTQTYcKNljfqMPdwicLdDLxMuh Duu34QAmvuoS6ref3FdwEbhyCyeIXspFaltiok8D/uMqb+6EoIJ+/GvVxcv8B+kZcGUp FDdwcWdUKbZJ0cEQpKYZkLnNTP395XHJBDMfZAffsm8f+qVSiEX/3cLgHABCCvhQdu4a JhCywo+LS7UIqSisLxFMlZQiY0zGEunoptJPBTugrVm04ctpay7etj2FRIZOVsmZ9WNp q9Tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence: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=8AzXZY4sktjelIOLUdA6HcZb7eWt+lM80j5WWM4/Qn8=; b=CwE4gxeHAGwUlK2v7+oPFVhY29Pzsuyp/FyCfSTxM64iPj16rGRRnUygd1zNWYP8+W tDgHQMp6gM170MjAZ0VUDl/iTa86TEb7P0P0UQDxGX57e0jKBVygjjcnzPsYfwHSmVs6 S4AnV/iMmftkIYpADxmyiCM2gdJKsLswqVn6FIwSTga9D73v1rkrfIxs1Fegt1sowW9f xSowMZYgTqKPLSXBBsRBe+0/GTS5Wz+7xlnuCiG2rGRYn/PqF+C8i7rD4sPppP5lRtt4 krnmziHVuTIwfjEMokYs3w6MGLn6oeMmJ5uvQ7wv5CBdhx9sQhOVsPG1qgB3DGAfItY/ lbtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o15si15313064edc.604.2021.05.12.03.58.37; Wed, 12 May 2021 03:59:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230230AbhELK4n convert rfc822-to-8bit (ORCPT + 99 others); Wed, 12 May 2021 06:56:43 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3065 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbhELK4l (ORCPT ); Wed, 12 May 2021 06:56:41 -0400 Received: from fraeml707-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4FgBLl6p5Tz6ppQ3; Wed, 12 May 2021 18:47:11 +0800 (CST) 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.2176.2; Wed, 12 May 2021 12:55:29 +0200 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.2176.012; Wed, 12 May 2021 12:55:29 +0200 From: Roberto Sassu To: Mimi Zohar , "mjg59@google.com" CC: "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v6 10/11] ima: Introduce template field evmsig and write to field sig as fallback Thread-Topic: [PATCH v6 10/11] ima: Introduce template field evmsig and write to field sig as fallback Thread-Index: AQHXQaK0P4hV9Rbe4USY0rnHgJAPHarewKKAgAD2aHA= Date: Wed, 12 May 2021 10:55:29 +0000 Message-ID: References: <20210505112935.1410679-1-roberto.sassu@huawei.com> <20210505113329.1410943-6-roberto.sassu@huawei.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.221.98.153] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Mimi Zohar [mailto:zohar@linux.ibm.com] > Sent: Wednesday, May 12, 2021 12:12 AM > Hi Roberto, > > On Wed, 2021-05-05 at 13:33 +0200, Roberto Sassu wrote: > > With the patch to accept EVM portable signatures when the > > appraise_type=imasig requirement is specified in the policy, appraisal can > > be successfully done even if the file does not have an IMA signature. > > > > However, remote attestation would not see that a different signature type > > was used, as only IMA signatures can be included in the measurement list. > > This patch solves the issue by introducing the new template field 'evmsig' > > to show EVM portable signatures and by including its value in the existing > > field 'sig' if the IMA signature is not found. > > With this patch, instead of storing the file data signature, the file > metadata signature is stored in the IMA measurement list, as designed. > There's a minor problem. Unlike the file data signature, the > measurement list record does not contain all the information needed to > verify the file metadata signature. Ok, we could add new template fields later. Roberto HUAWEI TECHNOLOGIES Duesseldorf GmbH, HRB 56063 Managing Director: Li Peng, Li Jian, Shi Yanli > thanks, > > Mimi