efi: Add EFI shim lock verifier
RFC PATCH 1/1 efi: Add EFI shim lock verifier
This is based on git://git.savannah.gnu.org/grub.git phcoder/verifiers branch.
Just an RFC.
TODO:
- disable the GRUB2 modules load/unload,
- disable the dangerous modules, e.g. iorw, memrw.
Signed-off-by Daniel Kiper <[email protected]>
--- grub-core/Makefile.core.def | 6 +++ grub-core/commands/efi/shim_lock.c | 100 ++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 grub-core/commands/efi/shim_lock.c
grub-core/Makefile.core.def +6 -0
@@ -905,6 +905,12 @@ module = { }; module = { + name = shim_lock; + common = commands/efi/shim_lock.c; + enable = x86_64_efi; +}; + +module = { name = hdparm; common = commands/hdparm.c; common = lib/hexdump.c;
grub-core/commands/efi/shim_lock.c new file +100 -0
100 lines not on this page · raw message
Signature · 1 line
1.7.10.4