Skip to content
This repository

UEFI shim loader

branch: master

Get rid of SectionCache in generate_hash(), it is unused.

Signed-off-by: Peter Jones <pjones@redhat.com>
latest commit 5103c3b368
Peter Jones vathpela authored
Octocat-spinner-32 Cryptlib allow 32-bit compilation with 64-bit compiler November 12, 2013
Octocat-spinner-32 include Fix path generation for Dhcpv4 bootloader. November 21, 2013
Octocat-spinner-32 lib Error check the right thing in get_variable_attr() when allocating. November 21, 2013
Octocat-spinner-32 .gitignore Add ident-like blobs to shim.efi for version checking. October 03, 2013
Octocat-spinner-32 COPYRIGHT Add copyright file July 09, 2012
Octocat-spinner-32 Makefile additional bounds-checking on section sizes April 11, 2014
Octocat-spinner-32 MokManager.c additional bounds-checking on section sizes April 11, 2014
Octocat-spinner-32 MokVars.txt Add support for disabling db for verification October 02, 2013
Octocat-spinner-32 PasswordCrypt.c additional bounds-checking on section sizes April 11, 2014
Octocat-spinner-32 PasswordCrypt.h MokManager: support Tradition DES hash September 26, 2013
Octocat-spinner-32 README Add basic documentation July 28, 2012
Octocat-spinner-32 TODO Update for Josh's changes. October 02, 2013
Octocat-spinner-32 cert.S Make vendor_cert/vendor_dbx actually replaceable by an external tool. October 01, 2013
Octocat-spinner-32 crypt_blowfish.c MokManager: support blowfish-based crypt() hash September 26, 2013
Octocat-spinner-32 crypt_blowfish.h MokManager: support blowfish-based crypt() hash September 26, 2013
Octocat-spinner-32 elf_ia32_efi.lds Move embedded certificates to their own section. June 10, 2013
Octocat-spinner-32 elf_ia64_efi.lds Move embedded certificates to their own section. June 10, 2013
Octocat-spinner-32 elf_x86_64_efi.lds Move embedded certificates to their own section. June 10, 2013
Octocat-spinner-32 fallback.c additional bounds-checking on section sizes April 11, 2014
Octocat-spinner-32 make-certs Sign MokManager with a locally-generated key November 26, 2012
Octocat-spinner-32 netboot.c Lengths that might be -1 can't be unsigned, Peter. November 21, 2013
Octocat-spinner-32 netboot.h netboot.h: fix build error on 32-bit systems November 12, 2013
Octocat-spinner-32 replacements.c Allow fallback to use the system's LoadImage/StartImage . February 14, 2014
Octocat-spinner-32 replacements.h Allow fallback to use the system's LoadImage/StartImage . February 14, 2014
Octocat-spinner-32 shim.c Get rid of SectionCache in generate_hash(), it is unused. April 11, 2014
Octocat-spinner-32 shim.h Make SHIM_LOCK_GUID a first-class object with a symbol. September 23, 2013
Octocat-spinner-32 testplan.txt Add a failure case to the test plan and fix an ordering error. February 14, 2014
Octocat-spinner-32 ucs2.h Add StrCSpn() April 30, 2013
Octocat-spinner-32 version.c.in Add ident-like blobs to shim.efi for version checking. October 03, 2013
Octocat-spinner-32 version.h Add ident-like blobs to shim.efi for version checking. October 03, 2013
README
shim is a trivial EFI application that, when run, attempts to open and
execute another application. It will initially attempt to do this via the
standard EFI LoadImage() and StartImage() calls. If these fail (because secure
boot is enabled and the binary is not signed with an appropriate key, for
instance) it will then validate the binary against a built-in certificate. If
this succeeds and if the binary or signing key are not blacklisted then shim
will relocate and execute the binary.

shim will also install a protocol which permits the second-stage bootloader
to perform similar binary validation. This protocol has a GUID as described
in the shim.h header file and provides a single entry point. On 64-bit systems
this entry point expects to be called with SysV ABI rather than MSABI, and
so calls to it should not be wrapped.

To use shim, simply place a hex dump of the public certificate in cert.h
and build it with make.
Something went wrong with that request. Please try again.