Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\platform_certs\load_uefi.c Create Date:2022-07-28 19:56:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Get a certificate list blob from the named EFI variable.

Proto:static __init void *get_cert_list(efi_char16_t *name, efi_guid_t *guid, unsigned long *size, efi_status_t *status)

Type:void

Parameter:

TypeParameterName
efi_char16_t *name
efi_guid_t *guid
unsigned long *size
efi_status_t *status
40  lsize = 4
44  status = get_variable(name, guid, NULL, & lsize, & tmpdb)
45  If status == EFI_NOT_FOUND Then Return NULL
48  If status != EFI_BUFFER_TOO_SMALL Then
49  pr_err("Couldn't get size: 0x%lx\n", * status)
50  Return NULL
53  db = Allocation memory
54  If Not db Then Return NULL
57  status = get_variable(name, guid, NULL, & lsize, db)
58  If status != EFI_SUCCESS Then
59  kfree(db)
60  pr_err("Error reading db var: 0x%lx\n", * status)
61  Return NULL
64  size = lsize
65  Return db
Caller
NameDescribe
load_uefi_certsLoad the certs contained in the UEFI databases into the platform trusted* keyring and the UEFI blacklisted X.509 cert SHA256 hashes into the blacklist* keyring.