Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Install a process keyring to the given credentials struct if it didn't have* one already. This is allowed to overrun the quota.* Return: 0 if a process keyring is now present; -errno on failure.

Proto:int install_process_keyring_to_cred(struct cred *new)

Type:int

Parameter:

TypeParameterName
struct cred *new
272  If keyring private to this process Then Return 0
275  keyring = Allocate a keyring and link into the destination keyring.
279  If IS_ERR(keyring) Then Return PTR_ERR(keyring)
282  keyring private to this process = keyring
283  Return 0
Caller
NameDescribe
install_process_keyringInstall a process keyring to the current task if it didn't have one already.* Return: 0 if a process keyring is now present; -errno on failure.
keyctl_set_reqkey_keyringRead or set the default keyring in which request_key() will cache keys and* return the old setting.* If a thread or process keyring is specified then it will be created if it* doesn't yet exist. The old setting will be returned if successful.