函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__integrity_init_keyring

函数原型:static int __init __integrity_init_keyring(const unsigned int id, key_perm_t perm, struct key_restriction *restriction)

返回类型:int

参数:

类型参数名称
const unsigned intid
key_perm_tperm
struct key_restriction *restriction
101  cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
102  err等于0
104  keyring[id]等于Allocate a keyring and link into the destination keyring.
107  如果是错误
108  err等于错误
109  打印信息("Can't allocate %s keyring (%d)\n", keyring_name[id], err)
111  keyring[id] = NULL
112  否则
113  如果id恒等于INTEGRITY_KEYRING_PLATFORMset_platform_trusted_keys(keyring[id])
117  返回:err
调用者
名称描述
integrity_init_keyring