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:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:int install_thread_keyring_to_cred(struct cred *new)

Type:int

Parameter:

TypeParameterName
struct cred *new
225  If keyring private to this thread Then Return 0
228  keyring = Allocate a keyring and link into the destination keyring.
232  If IS_ERR(keyring) Then Return PTR_ERR(keyring)
235  keyring private to this thread = keyring
236  Return 0
Caller
NameDescribe
install_thread_keyringInstall a thread keyring to the current task if it didn't have one already.* Return: 0 if a thread 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.