Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D117C31E43 for ; Mon, 10 Jun 2019 17:02:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE1A02053B for ; Mon, 10 Jun 2019 17:02:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727997AbfFJRCg (ORCPT ); Mon, 10 Jun 2019 13:02:36 -0400 Received: from linux.microsoft.com ([13.77.154.182]:55802 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727914AbfFJRCg (ORCPT ); Mon, 10 Jun 2019 13:02:36 -0400 Received: from [10.200.157.26] (unknown [131.107.160.154]) by linux.microsoft.com (Postfix) with ESMTPSA id DA0D320B7194; Mon, 10 Jun 2019 10:02:35 -0700 (PDT) Subject: Re: [PATCH 0/2] [IMA] Measure public keys of BuiltIn Trusted Keys From: Lakshmi To: Ken Goldman , Linux Integrity , Mimi Zohar , David Howells Cc: James Morris , Prakhar Srivastava , Balaji Balasubramanyan , Jordan Hand References: <71cc3b9b-d045-8a69-5917-96b4c5654b16@linux.ibm.com> <0561ce44-f8f7-15f5-6eaf-fb97a785692a@linux.microsoft.com> Message-ID: <9223cb39-f24e-d65f-33cc-b9ca25bce540@linux.microsoft.com> Date: Mon, 10 Jun 2019 10:02:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <0561ce44-f8f7-15f5-6eaf-fb97a785692a@linux.microsoft.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-integrity-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-integrity@vger.kernel.org On 6/7/19 10:15 AM, Lakshmi wrote: > On 6/7/19 7:14 AM, Ken Goldman wrote: > >> >> Why is this important?  What is gained by measuring the keys on the >> built-in keyring?  The IMA log already measures [a pointer to] the >> IMA keys used for signature verification.  Why does the service care >> what keys were used to install the IMA keys? > > By measuring the built-in keyring, the service knows whether or not the > key(s) in "IMA keyring" are indeed trusted or not. So while the IMA key > validates the file signatures on the client, the built-in key validates > the IMA key(s). > > By knowing what keys were used to install the IMA key(s) the service > knows whether or not to trust the signature validation performed by IMA > on the client. Hi Ken\Mimi, Please let me know if you have more questions\concerns about this approach. If the high level design is acceptable, please review the code changes and provide feedback\comments. Thanks, -lakshmi