Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyctl.c Create Date:2022-07-28 18:20:26
Last Modify:2020-03-18 07:59:52 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Change the request_key authorisation key on the current process.

Proto:static int keyctl_change_reqkey_auth(struct key *key)

Type:int

Parameter:

TypeParameterName
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  If Not new Then Return -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  Return 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
Caller
NameDescribe
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