函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\platform_certs\load_uefi.c Create Date:2022-07-27 21:55:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Get a certificate list blob from the named EFI variable.

函数原型:static __init void *get_cert_list(efi_char16_t *name, efi_guid_t *guid, unsigned long *size, efi_status_t *status)

返回类型:void

参数:

类型参数名称
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  如果status恒等于EFI_NOT_FOUND则返回:NULL
48  如果status不等于EFI_BUFFER_TOO_SMALL
49  打印错误信息("Couldn't get size: 0x%lx\n", * status)
50  返回:NULL
53  db等于开辟内存
54  如果非db则返回:NULL
57  status等于get_variable(name, guid, NULL, & lsize, db)
58  如果status不等于EFI_SUCCESS
59  释放内存
60  打印错误信息("Error reading db var: 0x%lx\n", * status)
61  返回:NULL
64  size等于lsize
65  返回:db
调用者
名称描述
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.