Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Blacklist a hash.

Proto:static __init void uefi_blacklist_hash(const char *source, const void *data, size_t len, const char *type, size_t type_len)

Type:void

Parameter:

TypeParameterName
const char *source
const void *data
size_tlen
const char *type
size_ttype_len
27  hash = Allocation memory
28  If Not hash Then Return
30  p = memcpy(hash, type, type_len)
31  p += type_len
32  2hex - convert binary data to an ascii hexadecimal string*@dst: ascii hexadecimal result*@src: binary data*@count: binary data length
33  p += len * 2
34  p = 0
36  mark_hash_blacklisted(hash)
37  kfree(hash)
Caller
NameDescribe
uefi_blacklist_x509_tbsBlacklist an X509 TBS hash.
uefi_blacklist_binaryBlacklist the hash of an executable.