Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__integrity_init_keyring

Proto:static int __init __integrity_init_keyring(const unsigned int id, key_perm_t perm, struct key_restriction *restriction)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(keyring[id]) Then
108  err = PTR_ERR(keyring[id])
109  pr_info("Can't allocate %s keyring (%d)\n", keyring_name[id], err)
111  keyring[id] = NULL
112  Else
113  If id == INTEGRITY_KEYRING_PLATFORM Then set_platform_trusted_keys(keyring[id])
117  Return err
Caller
NameDescribe
integrity_init_keyring