Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2528112ybc; Wed, 20 Nov 2019 16:04:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyReph5yL1MKAy50UmN+OmWOMVQ87mp5H3KlA3TmL129GccEkcZv9Fue9Gk4cgtHUmDBdXQ X-Received: by 2002:a7b:ce12:: with SMTP id m18mr6900723wmc.130.1574294656030; Wed, 20 Nov 2019 16:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574294656; cv=none; d=google.com; s=arc-20160816; b=PF7BxASzQt+QsgJMGCToYtFHzipmySlLEMKnJGuObXMVPOnU3pi7zxR2BmLCP88IJP 3vbd0FA6Z1/IrSVtCFrZJlx+hJrZO+iz0ENyp7ftTpjvdqHjR9M8hObcaWincz3XtW3K 0+TEDrYbQrLhhHBinajPDAOt9CsZGjtU5eD7nutzakBmMZOtH9JXyqgBGHmfiQkS/qLL HIdqWgg2tP94mJ9X1qfReM7KdIl6C1cD3zdZO0fShfGtPw1qf934vEYO/xaQWpY1lmCz lOfGDiZD9wmqw8Uhg7oAB/T9M9zeIroXEE5zgFlUO/H9o9gUMsAYkGIY0d8w7D/+TVex mUKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature:dkim-filter; bh=Nx7FpAeREdfQqZZz2uLZtOiIJYjK6fek5qV+toHpBaI=; b=RJXDL64Uei+yW8GRYWUolF3BYJV7EQUKkI61xUKIXJrXsnQTxrlsSlwhCEP1pwfrQc Fx9MeFNKwzLPyIhC2G0OrMyRWxBhAN9OMo0+Ujb2iknt5yoliWQl/Uf0BL5+wnr5RTjW sChPn3FGhUlLFE89yqLxSqkqJE+gVolkkZmhOZIdgverHCZcDPHxjPu3P7nTF0ScRrPp OQqWuSuGtIjLWLO9T0+VBEB2m9NmseCHi+W0Kg7Kd+CUV2AtBgedrZprkz+LJw7DkrkO ac7NtfPmyemtItseVL6o7IOrHJO1Co//o6X5by9a959pyIFXfggQSM23EzuKz+rBhXUR bYKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=sYQwijFj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo21si795162edb.137.2019.11.20.16.03.51; Wed, 20 Nov 2019 16:04:16 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=sYQwijFj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726351AbfKUACn (ORCPT + 99 others); Wed, 20 Nov 2019 19:02:43 -0500 Received: from linux.microsoft.com ([13.77.154.182]:60960 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbfKUACn (ORCPT ); Wed, 20 Nov 2019 19:02:43 -0500 Received: from [10.137.112.111] (unknown [131.107.147.111]) by linux.microsoft.com (Postfix) with ESMTPSA id 3CFAA20B7185; Wed, 20 Nov 2019 16:02:42 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 3CFAA20B7185 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1574294562; bh=Nx7FpAeREdfQqZZz2uLZtOiIJYjK6fek5qV+toHpBaI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=sYQwijFj6MBhFH/urC2eZ2vc15KxWA4yf3qIPx8OQIrpGoSj2oRh/VJuzflpff9sx Ai2tcsobEKccZSRUJRVLLpf0HdjVsJ1SmgWT8kpytCUcogKsVZKKskzOzwK4PSkzT6 F0iLGnTJgiMGLT2QRjPFeoAVyKUEeJmK1Y2TdfCw= Subject: Re: [PATCH v8 4/5] IMA: Add support to limit measuring keys To: Mimi Zohar , linux-integrity@vger.kernel.org Cc: linux-kernel@vger.kernel.org, keyrings@vger.kernel.org References: <20191118223818.3353-1-nramas@linux.microsoft.com> <20191118223818.3353-5-nramas@linux.microsoft.com> <1574291957.4793.144.camel@linux.ibm.com> From: Lakshmi Ramasubramanian Message-ID: Date: Wed, 20 Nov 2019 16:03:05 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1574291957.4793.144.camel@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? thanks, -lakshmi