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

From: Matthew Garrett
Date: Tue Sep 04 2012 - 16:22:02 EST


On Tue, Sep 04, 2012 at 01:13:32PM -0700, Eric W. Biederman wrote:
>
> Matthew Garrett <mjg@xxxxxxxxxx> writes:
>
> > kexec could be used as a vector for a malicious user to use a signed kernel
> > to circumvent the secure boot trust model. In the long run we'll want to
> > support signed kexec payloads, but for the moment we should just disable
> > loading entirely in that situation.
>
> Nacked-by: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
>
> This makes no sense. The naming CAP_SECURE_FIRMWARE is attrocious,
> you aren't implementing or enforcing secure firmware.

I'm certainly not attached to the name, and have no problem replacing
it.

> You don't give any justification for this other than to support some
> silly EFI feature. Why would anyone want this if we were not booting
> under EFI?

Well, given that approximately everyone will be booting under EFI within
18 months, treating it as a niche case seems a little short sighted. 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.

--
Matthew Garrett | mjg59@xxxxxxxxxxxxx
--
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/