函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\keyring.c Create Date:2022-07-29 10:57:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:allocate_master_key_users_keyring

函数原型:static int allocate_master_key_users_keyring(struct fscrypt_master_key *mk)

返回类型:int

参数:

类型参数名称
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  如果是错误则返回:错误
258  Keyring which contains a key of type 'key_type_fscrypt_user' for each* user who has added this key等于keyring
259  返回:0
调用者
名称描述
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.