Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:integrity_add_key

Proto:int __init integrity_add_key(const unsigned int id, const void *data, off_t size, key_perm_t perm)

Type:int

Parameter:

TypeParameterName
const unsigned intid
const void *data
off_tsize
key_perm_tperm
151  rc = 0
153  If Not keyring[id] Then Return -EINVAL
156  key = key_create_or_update - Update or create and instantiate a key.*@keyring_ref: A pointer to the destination keyring with possession flag.*@type: The type of key.*@description: The searchable description for the key.
159  If IS_ERR(key) Then
160  rc = PTR_ERR(key)
161  pr_err("Problem loading X.509 certificate %d\n", rc)
162  Else
163  pr_notice("Loaded X.509 cert '%s'\n", description)
165  key_ref_put(key)
168  Return rc
Caller
NameDescribe
integrity_load_x509
integrity_load_cert