lkml.org 
[lkml]   [2012]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 07/11] kexec: Disable in a secure boot environment
On Tue, Sep 04, 2012 at 02:13:54PM -0700, Eric W. Biederman wrote:
> Matthew Garrett <mjg59@srcf.ucam.org> writes:
> > And
> > secondly, there are already several non-EFI platforms that want to enact
> > a policy preventing root from being able to arbitrarily replace the
> > kernel. Given that people are doing this in the wild, it makes sense to
> > move towards offering that policy in the mainline kernel.
>
> Either this code makes sense without an appeal to EFI or this code makes
> no sense.

The driving force behind this code right now is that our choices are
either (1) do something like this, or (2) disable kexec entirely. Like I
said, long term we'd want to provide appropriate technical mechanisms to
make kexec usable in a world where people want to be able to trust their
kernel, and we have people working on that. But that being our
motivation for the implementation doesn't mean that other parties won't
have uses for it, and I'd like to find a solution that satisfies them as
well.

> It is fine for jumping through the EFI trusted boot hoops to be your
> motivation, but EFI policy should not be the justification for kernel
> implementation details.

Sure it is. The kernel exists to provide the functionality that people
require, and UEFI imposes that requirement on the people. It's like
saying gcc policy shouldn't be the justification for kernel
implementation details. We don't control the gcc developers, but we have
to consume what they provide us with.

> So please rework this to come from an angle that makes sense all by
> itself.

I'm afraid I have no idea what you're asking for here. Some vendors want
to be able to ensure that kexec is only used to load trusted code. Right
now there's no mechanism for ensuring that, so why not at least provide
a mechanism for them to turn it off at runtime?

--
Matthew Garrett | mjg59@srcf.ucam.org


\
 
 \ /
  Last update: 2012-09-05 00:04    [W:0.077 / U:0.632 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site