函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Load the certs contained in the keys databases into the platform trusted* keyring and the blacklisted X.509 cert SHA256 hashes into the blacklist* keyring.

函数原型:static int __init load_powerpc_certs(void)

返回类型:int

参数:

53  void * db = NULL, * dbx = NULL
54  dbsize等于0, dbxsize等于0
55  rc等于0
58  如果非secvar_ops则返回:负ENODEV
62  node等于of_find_compatible_node(NULL, NULL, "ibm,edk2-compat-v1")
63  如果非node则返回:负ENODEV
70  db等于Get a certificate list blob from the named secure variable.
71  如果非db
72  打印错误信息("Couldn't get db list from firmware\n")
73  否则
74  rc等于parse_efi_signature_list - Parse an EFI signature list for certificates*@source: The source of the key*@data: The data blob to parse*@size: The size of the data blob*@get_handler_for_guid: Get the handler func for the sig type (or NULL)
76  如果rc打印错误信息("Couldn't parse db signatures: %d\n", rc)
78  释放内存
81  dbx等于Get a certificate list blob from the named secure variable.
82  如果非dbx
83  打印信息("Couldn't get dbx list from firmware\n")
84  否则
85  rc等于parse_efi_signature_list - Parse an EFI signature list for certificates*@source: The source of the key*@data: The data blob to parse*@size: The size of the data blob*@get_handler_for_guid: Get the handler func for the sig type (or NULL)
87  如果rc打印错误信息("Couldn't parse dbx signatures: %d\n", rc)
89  释放内存
92  of_node_put(node)
94  返回:rc