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:Create ->s_master_keys if needed. Synchronized by fscrypt_add_key_mutex.

Proto:static int allocate_filesystem_keyring(struct super_block *sb)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
203  If s_master_keys Then Return 0
206  format_fs_keyring_description(description, sb)
207  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)
211  If IS_ERR(keyring) Then Return PTR_ERR(keyring)
215  smp_store_release( & s_master_keys, keyring)
216  Return 0
Caller
NameDescribe
add_master_key