iPXE
shimmgmt.h File Reference

EFI shim management. More...

#include <ipxe/image.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
int shim (struct image *image, int require_loader, int allow_pxe, int allow_sbat)
 Set shim image.

Detailed Description

EFI shim management.

Definition in file shimmgmt.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ shim()

int shim ( struct image * image,
int require_loader,
int allow_pxe,
int allow_sbat )
extern

Set shim image.

Parameters
imageShim image, or NULL to clear shim
require_loaderRequire use of a third party loader
allow_pxeAllow use of PXE base code
allow_sbatAllow SBAT variable access
Return values
rcReturn status code

Definition at line 46 of file shimmgmt.c.

47 {
48
49 /* Record (or clear) shim image */
50 image_tag ( image, &efi_shim );
51
52 /* Avoid including image in constructed initrd */
53 if ( image )
54 image_hide ( image );
55
56 /* Record configuration */
57 efi_shim_require_loader = require_loader;
58 efi_shim_allow_pxe = allow_pxe;
59 efi_shim_allow_sbat = allow_sbat;
60
61 return 0;
62}
int efi_shim_allow_pxe
Allow use of PXE base code protocol.
Definition efi_shim.c:87
int efi_shim_require_loader
Require use of a third party loader binary.
Definition efi_shim.c:69
int efi_shim_allow_sbat
Allow SBAT variable access.
Definition efi_shim.c:107
static struct image * image_tag(struct image *image, struct image_tag *tag)
Tag image.
Definition image.h:297
static void image_hide(struct image *image)
Mark image as hidden.
Definition image.h:286
An executable image.
Definition image.h:24

References efi_shim_allow_pxe, efi_shim_allow_sbat, efi_shim_require_loader, image_hide(), and image_tag().

Referenced by COMMAND(), efi_image_exec(), efi_shim_cmdline(), efi_shim_install(), FILE_SECBOOT(), and shim_exec().