All of lore.kernel.org
 help / color / mirror / Atom feed
* Signature verification in GRUB
@ 2012-10-09 22:54 Geoffrey Thomas
  2012-10-10  0:32 ` Chris Murphy
  2012-10-13 10:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 2 replies; 9+ messages in thread
From: Geoffrey Thomas @ 2012-10-09 22:54 UTC (permalink / raw)
  To: grub-devel

Hi GRUB list,

I'm working on adding verified boot / Secure Boot support to my company's 
OS-level product (MokaFive BareMetal). As background, we use whole-image 
updates to help with reliable unattended upgrades and for debugging; an 
upgrade is delivered as a new ISO image, and we have GRUB configuration to 
loop-mount the ISO and load further configuration, a kernel, and an 
initrd.

First, does GRUB has a mechanism for me to validate a digitally-signed 
file of some sort? This could be e.g. a PGP-signed file or something from 
`openssl dgst -sign`. I see that GRUB has all the relevant crypto 
primitives to do this, but I can't find a command to invoke them. (As far 
as I can tell, gcrypt is only used for PBKDF2 and cryptodisk support?)

If not, I'd like to add a command to verify a signature on a file, or 
possibly to verify a signature on a GRUB configuration file and execute it 
if it validates. Does this seem like a reasonable thing to add?

Secondarily, I'm curious if anyone has done work towards porting verity or 
some similar signed (but not encrypted) disk support to GRUB. Since we're 
already planning on using dm-verity once the kernel is booted, I think the 
simplest solution will be to have a signature on the verity root hash, 
mount the ISO using verity, and load the GRUB configuration / kernel / 
initrd from the resulting block device. Does this support exist already? 
(I've also asked this question on the dm-crypt list.)

Finally, if there's an easier way to do verified boot with GRUB or some 
existing effort along these lines that I should be helping out with, let 
me know.

Thanks,
-- 
Geoffrey Thomas
gthomas@mokafive.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-10-18 18:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-09 22:54 Signature verification in GRUB Geoffrey Thomas
2012-10-10  0:32 ` Chris Murphy
2012-10-10  1:14   ` Geoffrey Thomas
2012-10-10 18:33   ` Matthew Garrett
2012-10-10 19:07     ` Chris Murphy
2012-10-13 10:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-10-15 21:33   ` Geoffrey Thomas
2012-10-18 18:06     ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-10-18 18:17       ` Geoffrey Thomas

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.