Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Finalise an index key to include a part of the description actually in the* index key, to set the domain tag and to calculate the hash.

Proto:void key_set_index_key(struct keyring_index_key *index_key)

Type:void

Parameter:

TypeParameterName
struct keyring_index_key *index_key
216  static struct key_tag default_domain_tag = {usage = REFCOUNT_INIT(1), }
217  n = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(size_t, desc_len, size of First few chars of description )
219  memcpy( First few chars of description , description, n)
221  If Not Domain of operation Then
222  If flags & Keys of this type have a net namespace domain Then Domain of operation = key_domain
224  Else Domain of operation = default_domain_tag
228  Hash a key type and description.
Caller
NameDescribe
key_create_or_updatekey_create_or_update - Update or create and instantiate a key.*@keyring_ref: A pointer to the destination keyring with possession flag.*@type: The type of key.*@description: The searchable description for the key.
search_nested_keyringsSearch a tree of keyrings that point to other keyrings up to the maximum* depth.
key_get_persistentGet the persistent keyring for a specific UID and link it to the nominated* keyring.