Re: [PATCH 07/11] kexec: Disable in a secure boot environment

From: Eric W. Biederman
Date: Wed Sep 05 2012 - 00:33:44 EST


Matthew Garrett <mjg59@xxxxxxxxxxxxx> writes:

> On Tue, Sep 04, 2012 at 03:12:52PM -0700, Eric W. Biederman wrote:
>> Matthew Garrett <mjg59@xxxxxxxxxxxxx> writes:
>> > The driving force behind this code right now is that our choices are
>> > either (1) do something like this, or (2) disable kexec entirely.
>>
>> Actually there is an interesting question here. Why does even EFI secure
>> boot justify this? If I install my own key in EFI I should be able to
>> boot a kernel that does anything I want it to. My machine doing what I
>> want it to is the point of trusted boot is it not?
>
> The full implementation should trust keys that are trusted by the
> platform, so it'd boot any kexec image you cared to sign. Or simply
> patch this code out and rebuild and self-sign, or disable the code that
> turns off the capability when in secure boot mode. I've no objection to
> putting that behind an #ifdef.

I will be happy to see a version of kexec that accepts signed images,
allowing the functionality to work in your brave new world where
everything must be signed.

Until then I don't see a point in merging anything else.

I will be happy to see some reasonable patchs for signing support on the
kexec path.

Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/