Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\key.h Create Date:2022-07-28 05:40:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:make_key_ref

Proto:static inline key_ref_t make_key_ref(const struct key *key, bool possession)

Type:key_ref_t

Parameter:

TypeParameterName
const struct key *key
boolpossession
135  Return key | possession
Caller
NameDescribe
digsig_verifydigsig_verify() - digital signature verification with public key*@keyring: keyring to search key in*@sig: digital signature*@siglen: length of the signature*@data: data*@datalen: length of the data* Returns 0 on success, -EINVAL otherwise
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.
keyring_search_iteratorIteration function to consider each key found.
search_nested_keyringsSearch a tree of keyrings that point to other keyrings up to the maximum* depth.
find_key_to_updateSearch 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
find_keyring_by_nameFind a keyring with the specified name
look_up_user_keyringsLook up the user and user session keyrings for the current process's UID,* creating them if they don't exist.
get_user_session_keyring_rcuGet the user session keyring if it exists, but don't create it if it* doesn't.
search_cred_keyrings_rcuSearch the process keyrings attached to the supplied cred for the first* matching key under RCU conditions (the caller must be holding the RCU read* lock)
lookup_user_keyLook up a key ID given us by userspace with a given permissions mask to get* the key it refers to.* Flags can be passed to request that special keyrings be created if referred* to directly, to permit partially constructed keys to be found and to skip
construct_get_dest_keyringGet the appropriate destination keyring for the request.* The keyring selected is returned with an extra reference upon it which the* caller must release.
proc_keys_show
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.
integrity_add_key
request_asymmetric_keyRequest an asymmetric key.
search_fscrypt_keyringSearch ->s_master_keys or ->mk_users