函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Search the given keyring for a key that might be updated.* The caller must guarantee that the keyring is a keyring and that the* permission is granted to modify the keyring as no check is made here. The

函数原型:key_ref_t find_key_to_update(key_ref_t keyring_ref, const struct keyring_index_key *index_key)

返回类型:key_ref_t

参数:

类型参数名称
key_ref_tkeyring_ref
const struct keyring_index_key *index_key
1106  keyring等于key_ref_to_ptr(keyring_ref)
1108  kenter("{%d},{%s,%s}", key serial number , name, description)
1111  object等于assoc_array_find - Find an object by index key*@array: The associative array to search
1114  如果object则转到:found
1117  kleave(" = NULL")
1118  返回:NULL
1120  found :
1121  key等于keyring_ptr_to_key(object)
1122  如果 status flags (change with bitops) 按位与1左移set if key has been invalidated 位按位或1左移set if key had been revoked 位的值则
1124  kleave(" = NULL [x]")
1125  返回:NULL
1127  __key_get(key)
1128  kleave(" = {%d}", key serial number )
1129  返回:make_key_ref(key, is_key_possessed(keyring_ref))
调用者
名称描述
key_create_persistentCreate the persistent keyring for the specified user.* Called with the namespace's sem locked for writing.
key_get_persistentGet the persistent keyring for a specific UID and link it to the nominated* keyring.