Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyring.c Create Date:2022-07-28 18:18:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:key_ref_t find_key_to_update(key_ref_t keyring_ref, const struct keyring_index_key *index_key)

Type:key_ref_t

Parameter:

TypeParameterName
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  If object Then Go to found
1117  kleave(" = NULL")
1118  Return NULL
1120  found :
1121  key = keyring_ptr_to_key(object)
1122  If status flags (change with bitops) & ( 1 << set if key has been invalidated | 1 << set if key had been revoked ) Then
1124  kleave(" = NULL [x]")
1125  Return NULL
1127  __key_get(key)
1128  kleave(" = {%d}", key serial number )
1129  Return make_key_ref(key, is_key_possessed(keyring_ref))
Caller
NameDescribe
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.