Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2574359ybc; Wed, 20 Nov 2019 16:55:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxh9wrjN+23xxDWI//ess5FbR7WbZIEwNSS7UB4N3suIrYz9jEZ0CMAHfhKldCQGp0A5kAA X-Received: by 2002:a17:906:53c7:: with SMTP id p7mr9450047ejo.88.1574297714427; Wed, 20 Nov 2019 16:55:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574297714; cv=none; d=google.com; s=arc-20160816; b=SSzs/eBuHd3c+vV4gQ5HuC4BjieE4wAk8gUhiXkbWBjbryforaH4JTh/yqX1ZUzwXB xcCFVZvmNSXKj6rTYL2E36NibaHSrMLjtNZEkO4laiQZXkFYyGTG6cX+OOAxiqOKBzWd /5r1A71AyQoTiZCXQMMG1Hgk34fDvlNJEJHLQEw8zkH4UEjlullsfsZyR1lIt4GyTnco uBPImRKdmaLcwW2VOP68qDx8ZsDUptj00XYE7CndOQ5QBg8XliXgmZxOfoLIYCeGeqKG qSxsTvIxZ5GHavaWIilmBM6JTTrdjEMbXo7TSJ7hbsbRihYVOc7PhzKCYQKE49Om+EFA rgfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=BiYaP1omYlUWaarJwsM99R9a+vdm+qCUGD10QrkCYhY=; b=mi8nj/559oZaX+4xxxCHujxOa+186TXAotlsV7gBYGlYwoaWC21MSq6Id7IZfQSJvm zxx/99VElYB9CBG6MWOQQ2B0qbDClpwSv+7eaWSdhYcX4jOmWrqG+kfTRyoIIdhgY6bo kzaWB8uRchKWprzn6W0ObOoHxoQLDt+PEgrb+pxg2ZIxwrWbMZX203RUuReqx0ScqSbS 6CH01DfGjuzQ68rM0n4xWJU/zdRqhrNcHa2u/HDA4rHn0RHz4VUkAUbh8+2wRYVQJZqf F+aINI59o+ExW8Fhtuw7+64yhjUyErh48Sg5JI1r3tIugqGVNMIh1G6CUmVw0OMDjKOB NQhw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q17si1077965edc.6.2019.11.20.16.54.49; Wed, 20 Nov 2019 16:55:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726716AbfKUAxk (ORCPT + 99 others); Wed, 20 Nov 2019 19:53:40 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:16056 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726658AbfKUAxk (ORCPT ); Wed, 20 Nov 2019 19:53:40 -0500 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xAL0lmEX044681 for ; Wed, 20 Nov 2019 19:53:39 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2wadmyymfv-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 20 Nov 2019 19:53:39 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 21 Nov 2019 00:53:36 -0000 Received: from b06avi18626390.portsmouth.uk.ibm.com (9.149.26.192) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 21 Nov 2019 00:53:33 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xAL0qs6M18153960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 21 Nov 2019 00:52:54 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6ADF25204F; Thu, 21 Nov 2019 00:53:32 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.233.220]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id CE42F52050; Thu, 21 Nov 2019 00:53:31 +0000 (GMT) Subject: Re: [PATCH v8 4/5] IMA: Add support to limit measuring keys From: Mimi Zohar To: Lakshmi Ramasubramanian , linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org, keyrings@vger.kernel.org Date: Wed, 20 Nov 2019 19:53:31 -0500 In-Reply-To: References: <20191118223818.3353-1-nramas@linux.microsoft.com> <20191118223818.3353-5-nramas@linux.microsoft.com> <1574291957.4793.144.camel@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19112100-4275-0000-0000-000003842654 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19112100-4276-0000-0000-00003897A1F0 Message-Id: <1574297611.4793.154.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-20_08:2019-11-20,2019-11-20 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 bulkscore=0 mlxlogscore=999 impostorscore=0 mlxscore=0 clxscore=1015 priorityscore=1501 spamscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-1911210004 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-11-20 at 16:03 -0800, Lakshmi Ramasubramanian wrote: > On 11/20/2019 3:19 PM, Mimi Zohar wrote: > > Hi Mimi, > > >> The above can be used to correlate the key measurement IMA entry, > >> ima-sig and ima-modsig entries using the same key. > > > > True, but associating the public key measurement with the file > > signature requires information from the certificate (e.g. issuer, > > serial number, and/or subject, subject keyid). > > > > For a regression test, it would be nice if the key measurement, > > itself, contained everything needed in order to validate the file > > signatures in the measurement list. > > I am just trying to understand your asks - Please clarify: > > 1, My change includes only the public key and not the entire certificate > information in the measured buffer. > > Should I update this current patch set to measure the entire cert. Or, > can that be done as a separate patch set? > > 2, Should a regression test be part of this patch set for the key > measurement changes to be accepted? Once the key measurement is defined and upstreamed, changing it would result in a regression.  If we think that it would change multiple times, then perhaps the buffer measurement needs to contain some sort of versioning. I would very much like for a regression test to be included in this patch set, but it isn't a requirement, as long as everything needed for verifying a signature is included in the key measurement. Mimi