函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:long keyctl_set_reqkey_keyring(int reqkey_defl)

返回类型:long

参数:

类型参数名称
intreqkey_defl
1325  old_setting等于current_cred_xxx(jit_keyring)
1327  如果reqkey_defl恒等于quest-key default keyrings 则返回:old_setting
1330  new等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
1331  如果非new则返回:负ENOMEM
1335  :reqkey_defl恒等于KEY_REQKEY_DEFL_THREAD_KEYRING
1336  ret等于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.
1337  如果ret小于0则转到:error
1339  转到:set
1341  :reqkey_defl恒等于KEY_REQKEY_DEFL_PROCESS_KEYRING
1342  ret等于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.
1343  如果ret小于0则转到:error
1345  转到:set
1347  :reqkey_defl恒等于KEY_REQKEY_DEFL_DEFAULT
1348  :reqkey_defl恒等于KEY_REQKEY_DEFL_SESSION_KEYRING
1349  :reqkey_defl恒等于KEY_REQKEY_DEFL_USER_KEYRING
1350  :reqkey_defl恒等于KEY_REQKEY_DEFL_USER_SESSION_KEYRING
1351  :reqkey_defl恒等于KEY_REQKEY_DEFL_REQUESTOR_KEYRING
1352  转到:set
1354  :reqkey_defl恒等于quest-key default keyrings
1355  :reqkey_defl恒等于KEY_REQKEY_DEFL_GROUP_KEYRING
1356  默认
1357  ret等于负EINVAL
1358  转到:error
1361  set :
1362  default keyring to attach requested * keys to 等于reqkey_defl
1363  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
1364  返回:old_setting
1365  error :
1366  abort_creds - Discard a set of credentials and unlock the current task*@new: The credentials that were going to be applied* Discard a set of credentials that were under construction and unlock the* current task.
1367  返回:ret
调用者
名称描述
SYSCALL_DEFINE5The key control system call
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs