Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1524387

Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys to secondary keyring

From David Howells <dhowells@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys to secondary keyring
Date 2016-11-17 12:20 +0100
Message-ID <sEsTv-8pd-13@gated-at.bofh.it> (permalink)
References (1 earlier) <sEoZz-5Ur-1@gated-at.bofh.it> <sEcYp-6si-3@gated-at.bofh.it> <sEcYq-6si-29@gated-at.bofh.it> <sErE6-7my-27@gated-at.bofh.it> <sEs77-7Sn-15@gated-at.bofh.it>
Organization Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903

Show all headers | View raw


Petko Manolov <petkan@mip-labs.com> wrote:

> > > Well, I for one do not explicitly trust these keys.  I may even want to 
> > > completely remove or replace them.
> > 
> > Fine be me.  However, if you remove them all I would guess that you cannot 
> > perform a secure boot.
> 
> Maybe not on PC, but there's plenty of other architectures out there.  What
> if i replace all UEFI keys with my own?

Then I would imagine that you can do a secure boot, but that you have to sign
your own shim, grub, kernel, etc..

> > Note that it's to be expected that the keys being loaded from the UEFI
> > database cannot have their signatures checked - which is why they would
> > have to be implicitly trusted.  For the same reason, the kernel does not
> > check the signatures on the keys compiled into the kernel image.
> 
> I build all kernels that matter to me and i _do_ trust myself.
> Unfortunately i can't say the same for any corporation out there.
> 
> Trusting a key because your vendor shipped the HW with it so that you have no 
> way to verify the signature is pretty weak argument IMHO.

I'm not making an argument there.  There is a reason I think that I can't
check them.  Well, possibly I could *if* those keys are actually signed *and*
I have certs built into the kernel by which I can verify all those keys in
UEFI variables.  I don't know whether this is actually practical.

> > You can argue this either way.  There's a config option to allow you to
> > turn this on or off.  Arguably, this should be split in two: one for the
> > whitelist (db, MokListRT) and one for the blacklist (dbx).
> 
> I did not see the config option.  There is one?

See patch 8 where these variables are actually parsed.  CONFIG_LOAD_UEFI_KEYS
is available there.

David

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys to  secondary keyring David Howells <dhowells@redhat.com> - 2016-11-16 19:20 +0100
  Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys  to secondary keyring Petko Manolov <petkan@mip-labs.com> - 2016-11-17 08:10 +0100
    Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys to secondary keyring David Howells <dhowells@redhat.com> - 2016-11-17 11:00 +0100
      Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys  to secondary keyring Petko Manolov <petkan@mip-labs.com> - 2016-11-17 11:30 +0100
        Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys to secondary keyring David Howells <dhowells@redhat.com> - 2016-11-17 12:20 +0100
      Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys  to secondary keyring Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-11-21 15:10 +0100
        Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys to secondary keyring David Howells <dhowells@redhat.com> - 2016-11-21 16:20 +0100
          Re: [PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys  to secondary keyring Mimi Zohar <zohar@linux.vnet.ibm.com> - 2016-11-21 17:30 +0100

csiph-web