函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:integrity_add_key

函数原型:int __init integrity_add_key(const unsigned int id, const void *data, off_t size, key_perm_t perm)

返回类型:int

参数:

类型参数名称
const unsigned intid
const void *data
off_tsize
key_perm_tperm
151  rc等于0
153  如果非keyring[id]则返回:负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  如果是错误
160  rc等于错误
161  打印错误信息("Problem loading X.509 certificate %d\n", rc)
162  否则
163  打印注释信息("Loaded X.509 cert '%s'\n", description)
165  key_ref_put(key)
168  返回:rc
调用者
名称描述
integrity_load_x509
integrity_load_cert