Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:allocate_master_key_users_keyring

Proto:static int allocate_master_key_users_keyring(struct fscrypt_master_key *mk)

Type:int

Parameter:

TypeParameterName
struct fscrypt_master_key *mk
249  format_mk_users_keyring_description(description, identifier)
251  keyring = keyring_alloc(description, GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.(), possessor can find a key in search / search a keyring | KEY_USR_SEARCH | KEY_USR_READ | user permissions... , in quota , NULL, NULL)
255  If IS_ERR(keyring) Then Return PTR_ERR(keyring)
258  Keyring which contains a key of type 'key_type_fscrypt_user' for each* user who has added this key = keyring
259  Return 0
Caller
NameDescribe
add_new_master_keyAllocate a new fscrypt_master_key which contains the given secret, set it as* the payload of a new 'struct key' of type fscrypt, and link the 'struct key'* into the given keyring. Synchronized by fscrypt_add_key_mutex.