函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:int install_thread_keyring_to_cred(struct cred *new)

返回类型:int

参数:

类型参数名称
struct cred *new
225  如果 keyring private to this thread 则返回:0
228  keyring等于Allocate a keyring and link into the destination keyring.
232  如果是错误则返回:错误
235  keyring private to this thread 等于keyring
236  返回:0
调用者
名称描述
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.
copy_creds复制信任
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.