Add verity hash passthrough
Read the verity hash from the kernel binary and pass it to the running system via the kernel command line
This commit is contained in:
parent
2755ecd157
commit
e5ee3e8fa5
3 changed files with 30 additions and 0 deletions
|
@ -27,6 +27,8 @@
|
|||
#include <grub/lib/cmdline.h>
|
||||
#include <grub/efi/efi.h>
|
||||
|
||||
#include "../verity-hash.h"
|
||||
|
||||
GRUB_MOD_LICENSE ("GPLv3+");
|
||||
|
||||
static grub_dl_t my_mod;
|
||||
|
@ -288,6 +290,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
|
|||
linux_cmdline + sizeof (LINUX_IMAGE) - 1,
|
||||
lh.cmdline_size - (sizeof (LINUX_IMAGE) - 1));
|
||||
|
||||
grub_pass_verity_hash(&lh, linux_cmdline);
|
||||
lh.cmd_line_ptr = (grub_uint32_t)(grub_uint64_t)linux_cmdline;
|
||||
|
||||
handover_offset = lh.handover_offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue