Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964928Ab3DKVN0 (ORCPT ); Thu, 11 Apr 2013 17:13:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:14004 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964832Ab3DKVNW (ORCPT ); Thu, 11 Apr 2013 17:13:22 -0400 Date: Thu, 11 Apr 2013 17:13:16 -0400 From: Vivek Goyal To: Dmitry Kasatkin Cc: Mimi Zohar , Josh Boyer , Matthew Garrett , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC 2/2] initramfs with digital signature protection Message-ID: <20130411211316.GA26587@redhat.com> References: <1365450229.3847.56.camel@falcor1.watson.ibm.com> <20130408200904.GI28292@redhat.com> <20130409143852.GH6320@redhat.com> <1365563230.3074.107.camel@falcor1.watson.ibm.com> <20130410194209.GF6602@redhat.com> <1365627922.2452.32.camel@falcor1.watson.ibm.com> <20130411145550.GD21260@redhat.com> 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) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1633 Lines: 40 On Thu, Apr 11, 2013 at 09:42:54PM +0300, Dmitry Kasatkin wrote: [..] > > What other initialization user space need to do where we can't trust > > root (even in secureboot mode). > > > > IOW, if keys can be embedded in kernel (or read from UEFI db and MOK db), > > what other operation requires initramfs to be signed. It could very well > > be unsigned initramfs like today. > > > > It looks like you do not hear me. > I said that any user space initialization can be done from signed user space. > For example IMA policy can be initialized. > I am hearing you. Yes I heard you saying "but perform other initialization, which requires user-space". I am just trying to figure out more details. You are assuming that a single line statement gives all the context and it often might not be the case. What makes it important that IMA policy is loaded from an signed initramfs and not from unsigned one. Also how would you make use of it without secureboot. Only secureboot will allow to keep keys in firmware so that one can have a key in there and be able to sign initramfs. In regular system, distributions do not ship pre-loaded keys so one can not sign initramfs. So only thing possible is that distributions enforce some policy in signed initramfs and if distributions have to enforce a policy they can do that in kernel itself and no need for signed initramfs. Thanks Vivek -- 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/