Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static int __init load_powerpc_certs(void)

Type:int

Parameter:Nothing

53  void * db = NULL, * dbx = NULL
54  dbsize = 0 , dbxsize = 0
55  rc = 0
58  If Not secvar_ops Then Return -ENODEV
62  node = of_find_compatible_node(NULL, NULL, "ibm,edk2-compat-v1")
63  If Not node Then Return -ENODEV
70  db = Get a certificate list blob from the named secure variable.
71  If Not db Then
72  pr_err("Couldn't get db list from firmware\n")
73  Else
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  If rc Then pr_err("Couldn't parse db signatures: %d\n", rc)
78  kfree(db)
81  dbx = Get a certificate list blob from the named secure variable.
82  If Not dbx Then
83  pr_info("Couldn't get dbx list from firmware\n")
84  Else
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  If rc Then pr_err("Couldn't parse dbx signatures: %d\n", rc)
89  kfree(dbx)
92  of_node_put(node)
94  Return rc