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:Get a certificate list blob from the named secure variable.

Proto:static __init void *get_cert_list(u8 *key, unsigned long keylen, uint64_t *size)

Type:void

Parameter:

TypeParameterName
u8 *key
unsigned longkeylen
uint64_t *size
26  rc = get(key, keylen, NULL, size)
27  If rc Then
28  pr_err("Couldn't get size: %d\n", rc)
29  Return NULL
32  db = Allocation memory
33  If Not db Then Return NULL
36  rc = get(key, keylen, db, size)
37  If rc Then
38  kfree(db)
39  pr_err("Error reading %s var: %d\n", key, rc)
40  Return NULL
43  Return db
Caller
NameDescribe
load_powerpc_certsLoad the certs contained in the keys databases into the platform trusted* keyring and the blacklisted X.509 cert SHA256 hashes into the blacklist* keyring.