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 23980C31E46 for ; Wed, 12 Jun 2019 16:47:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 03954208C2 for ; Wed, 12 Jun 2019 16:47:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502225AbfFLQrV (ORCPT ); Wed, 12 Jun 2019 12:47:21 -0400 Received: from linux.microsoft.com ([13.77.154.182]:37388 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502210AbfFLQrV (ORCPT ); Wed, 12 Jun 2019 12:47:21 -0400 Received: from [10.91.6.157] (unknown [131.107.159.157]) by linux.microsoft.com (Postfix) with ESMTPSA id 5A85320B7186; Wed, 12 Jun 2019 09:47:20 -0700 (PDT) From: Jordan Hand Subject: Re: [PATCH 0/2] [IMA] Measure public keys of BuiltIn Trusted Keys To: Mimi Zohar , Lakshmi , Ken Goldman , Linux Integrity , David Howells Cc: James Morris , Prakhar Srivastava , Balaji Balasubramanyan , Matthew Garrett , James Bottomley References: <71cc3b9b-d045-8a69-5917-96b4c5654b16@linux.ibm.com> <0561ce44-f8f7-15f5-6eaf-fb97a785692a@linux.microsoft.com> <1560255756.4464.111.camel@linux.ibm.com> <1560273181.4464.226.camel@linux.ibm.com> Message-ID: Date: Wed, 12 Jun 2019 09:47:20 -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: <1560273181.4464.226.camel@linux.ibm.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/11/19 10:13 AM, Mimi Zohar wrote: >> >> The design of IMA from the very beginning has been to allow the system >> owner to decide which keys to trust.  This is the reason that the root >> of trust pivots from the pre-boot keys to the keys embedded in the >> Linux kernel.  When software packages contain both the file data and >> file signatures, the system owner will be able to pick and choose >> which public keys to sign and load onto the IMA keyring. >> >> This patch set might not be limiting which public keys may be loaded >> onto the builtin/secondary keyrings, but by virtue of including this >> information in the measurement list, the attestation service (eg. TNC) >> will be able to deny access.  IMA walks a fine line in enforcing and >> measuring file integrity.  This patch set breaches that fine line and >> by so doing, brings back the fears of trusted computing. I don't understand why measuring the keyring is more restrictive. Currently the signature of a file can already be measured. This means that the service can maintain a list of allowable keys and see if the files are signed with any of those keys. So effectively it is already possible for a service to deny access to the machine based on the keys it trusts. I also think validating the keys in the keyring is less restrictive than file-hash validation. You can say "I trust any file that the signer trusts". In file-hash validation you're saying "I only trust the files that I trust". > > Many attempts over the years were made to update grub to support > secure & trusted boot.  Richard Stallman (grudgingly) added the secure > boot callbacks, which are also being used for trusted boot.  The code > to actually do the signature verification though, as far as I'm aware, > is still not part of grub. > > It also took a really long time and effort to convince Stallman that > TPMs aren't totally bad.  He's added an addendum to the wiki.[1] >  Let's try not to upset Stallman too much. I do understand the desire to avoid taking a step backward by pushing too hard. As I said above, I don't see this as more restrictive than the existing measurements. But you have more understanding of the history here so let me know if I'm missing something. -Jordan > > Mimi > > [1] https://www.gnu.org/philosophy/can-you-trust.en.html >