All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Leif Lindholm <leif.lindholm@linaro.org>,
	Alexander Graf <agraf@suse.de>,
	grub-devel@gnu.org, Ard Biesheuvel <ard.biesheuvel@linaro.org>,
	Peter Jones <pjones@redhat.com>,
	 Matthew Garrett <mjg59@google.com>,
	Benjamin Brunner <bbrunner@suse.de>
Subject: Re: Discuss support for the linux kernel's EFI Handover Protocol on x86 and ARM
Date: Mon, 14 Jan 2019 08:07:34 +0100	[thread overview]
Message-ID: <CAKv+Gu8r307_OZ-T5KuBBL9n2NCMO=cGpVtYvx30-+wQfTsJuA@mail.gmail.com> (raw)
In-Reply-To: <20190114045829.GC5833@mazu>

On Mon, 14 Jan 2019 at 05:58, Michael Chang <mchang@suse.com> wrote:
>
> On Fri, Jan 11, 2019 at 10:58:54AM +0000, Leif Lindholm wrote:
> > On Thu, Jan 10, 2019 at 09:59:38AM +0100, Alexander Graf wrote:
> > > > Am 10.01.2019 um 09:12 schrieb Michael Chang <mchang@suse.com>:
> > > >
> > > > Hi,
> > > >
> > > > With the advent of new verifier framework and shim lock protocol support
> > > > to the grub's community, we are driving to the world of UEFI Secure
> > > > Boot, well, almost ..
> > > >
> > > > There is a missing piece in the puzzle remaining, that is booting linux
> > > > kernel via it's own EFI Handover Protocol's entry. Strictly speaking,
> > > > the interface is not part of the UEFI Secure Boot, but we have to use it
> > > > to avoid problem of using UEFI LoadImage Protocol, which will not work
> > > > with shim and it's Machine Owner Key (MOK) as they are not part of
> > > > firmware's KEK and db.
> > >
> > > So really dumb question here: What if we didn't use the MS key? What
> > > if instead, we just provide a SUSE/openSUSE key and give customers
> > > the ability to sign their own grub+Linux binaries?
> > >
> > > Then we would only need to lobby with platform vendors to include
> > > our public key in the delivered Keystore in parallel and everything
> > > would "just work".
> > >
> > > The only reason shim needs to provide its own key management is that
> > > on most x86 systems, we (and customers) don't have control over the
> > > keystore, right? We can just push to not have that problem on ARM.
> >
> > Sure. That's a valid (and I think Ard would say preferable) decision,
> > and should "just work" with upstream GRUB. But that's for each distro
> > to decide.
>
> It will work as far as it goes. I think part of the reason shim was used
> is that early x86 UEFI Secure Boot shipped without function to disable
> it and also no way to enter setup mode. It is then become some sort of
> vendor lock-in and has legal concern to the open source software like
> grub if it gets signed to prevent from freely distributed. If ARM
> provides setup mode and user has the freedom to manipulate on the
> firmware stores then I think shim may not be necessary.
>
> > > Am I missing anything?
>
> As time goes by shim has also evolved to do the work than it was
> expected originally. Here listed some of related features to consider
> when we get rid of shim or the MOK key store it manages. I don't know
> ARM folks consider these real issue or not, just for information.
>
> 1. Key revocation: To revoke a key in db would require the authenticate
> varaible support in linux, I didn't know its status much yet. And also
> it means each distro requires to work with vendor to get its variable
> signed, compared with shim that each disto could revoke their key
> indendently it brings way more complex and overhead in the process.
>

If the distro's key is in KEK, the distro can sign revocation updates directly.

> 2. Some distribution may be using kernel module signing which chains to
> the MOK store as it is easier to updat from the OS.
>

Pardon my ignorance, but I thought MOK keys were only updatable at
boot time? So why is it easier to update a MOK key than it is to
update db directly?

> 3. The Shim's fallback mode has been used to recreate boot entries after
> firmware update for x86, not sure if that any problem for ARM.
>

It thought fallback was a separate binary? If the distros sign that,
there is no reason we couldn't load it straight from a Boot#### or
PlatformRecovery#### entry.

> >
> > As I understand it, there was a concern with the wording in UEFI
> > 2.(3?, 4?) that made it possible to interpret it such that only one key
> > had to be supported.
> >
> > It all comes down to who wants to make sure the key is already in
> > shipped systems..
>
> Do you think all vendors and distro will have to use common secure
> channel to communicate the key distribution related issues ?
>

Define 'secure'. I don't think the distros should be sharing any
secrets with the vendor, but I guess they would have to establish some
kind of trust if the any keys get installed in the factory.
This is similar to how you get your public key hash fused into your
silicon when you order secure parts from a silicon vendor.


  reply	other threads:[~2019-01-14  7:07 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-10  8:12 Discuss support for the linux kernel's EFI Handover Protocol on x86 and ARM Michael Chang
2019-01-10  8:59 ` Alexander Graf
2019-01-11 10:58   ` Leif Lindholm
2019-01-11 14:17     ` Ard Biesheuvel
2019-01-14  7:30       ` Michael Chang
2019-01-14  7:41         ` Ard Biesheuvel
2019-01-14  9:53           ` Michael Chang
2019-01-14  9:57             ` Ard Biesheuvel
2019-01-14 11:09               ` Michael Chang
2019-01-14  4:58     ` Michael Chang
2019-01-14  7:07       ` Ard Biesheuvel [this message]
2019-01-14  9:14         ` Michael Chang
2019-01-14 10:22           ` Alexander Graf
2019-01-22  5:00             ` Michael Chang
2019-01-14 18:42           ` Peter Jones
2019-01-22  6:24             ` Michael Chang
2019-01-14 15:27         ` Peter Jones
2019-01-14 10:25     ` Alexander Graf
2019-01-11 19:32   ` Matthew Garrett
2019-01-11 19:49     ` Alexander Graf
2019-01-22  6:35       ` Michael Chang
2019-01-22  9:11         ` Alexander Graf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKv+Gu8r307_OZ-T5KuBBL9n2NCMO=cGpVtYvx30-+wQfTsJuA@mail.gmail.com' \
    --to=ard.biesheuvel@linaro.org \
    --cc=agraf@suse.de \
    --cc=bbrunner@suse.de \
    --cc=grub-devel@gnu.org \
    --cc=leif.lindholm@linaro.org \
    --cc=mjg59@google.com \
    --cc=pjones@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.