函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyctl.c Create Date:2022-07-27 19:55:04
Last Modify:2020-03-18 07:59:52 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Change the request_key authorisation key on the current process.

函数原型:static int keyctl_change_reqkey_auth(struct key *key)

返回类型:int

参数:

类型参数名称
struct key *key
1077  new等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
1078  如果非new则返回:负ENOMEM
1081  key_put - Discard a reference to a key.*@key: The key to discard a reference from.* Discard a reference to a key, and when all the references are gone, we* schedule the cleanup task to come and pull it out of the tree in process
1082  assumed request_key authority 等于key_get(key)
1084  返回:mmit_creds - Install new credentials upon the current task*@new: The credentials to be assigned* Install a new set of credentials to the current task, using RCU to replace* the old set. Both the objective and the subjective credentials pointers are
调用者
名称描述
keyctl_instantiate_key_commonInstantiate a key with the specified payload and link the key into the* destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to* work (see keyctl_assume_authority). No other permissions are required.
keyctl_reject_keyNegatively instantiate the key with the given timeout (in seconds) and error* code and link the key into the destination keyring if one is given.* The caller must have the appropriate instantiation permit set for this to
keyctl_assume_authorityAssume (or clear) the authority to instantiate the specified key