Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753641AbaFJVZ3 (ORCPT ); Tue, 10 Jun 2014 17:25:29 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:47704 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752876AbaFJVZ2 (ORCPT ); Tue, 10 Jun 2014 17:25:28 -0400 Date: Tue, 10 Jun 2014 22:25:16 +0100 From: Matthew Garrett To: Dmitry Kasatkin Cc: Josh Boyer , David Howells , Mimi Zohar , Dmitry Kasatkin , keyrings , "linux-kernel@vger.kernel.org" , linux-security-module Subject: Re: [PATCH 0/4] KEYS: validate key trust with owner and builtin keys only Message-ID: <20140610212516.GB10614@srcf.ucam.org> References: <1402331614.7064.60.camel@dhcp-9-2-203-236.watson.ibm.com> <20140610122008.GA31944@hansolo.jdub.homelinux.org> <20140610204021.GA8916@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: mjg59@cavan.codon.org.uk X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 11, 2014 at 12:17:53AM +0300, Dmitry Kasatkin wrote: > It is probably just a paranoia... > Kconfig MODULE_SIG_UEFI should tell about threat of loading kernel > modules from NSA or Lenovo signed by MS or Lenovo keys.. > > This hole is opened without warning... It's not typically a hole. If an attacker has root they can just replace your bootloader with one signed by a trusted key and then have that modify the kernel before booting it. If you're using a TPM then you can mitigate this, but if you have a TPM then you're already performing some extra steps during the boot process. Just add a sysfs knob that lets you drop the db keys and incorporate that into the TPM management code. -- Matthew Garrett | mjg59@srcf.ucam.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/