函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Assume (or clear) the authority to instantiate the specified key

函数原型:long keyctl_assume_authority(key_serial_t id)

返回类型:long

参数:

类型参数名称
key_serial_tid
1447  ret等于负EINVAL
1448  如果id小于0则转到:error
1452  如果id恒等于0则
1453  ret等于Change the request_key authorisation key on the current process.
1454  转到:error
1462  authkey等于Search the current process's keyrings for the authorisation key for* instantiation of a key.
1463  如果是错误
1464  ret等于错误
1465  转到:error
1468  ret等于Change the request_key authorisation key on the current process.
1469  如果ret恒等于0则ret等于 key serial number
1471  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
1472  error :
1473  返回:ret
调用者
名称描述
SYSCALL_DEFINE5The key control system call
COMPAT_SYSCALL_DEFINE5The key control system call, 32-bit compatibility version for 64-bit archs