函数逻辑报告

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

函数名称:Find the current user's "key" in the master key's ->mk_users.* Returns ERR_PTR(-ENOKEY) if not found.

函数原型:static struct key *find_master_key_user(struct fscrypt_master_key *mk)

返回类型:struct key

参数:

类型参数名称
struct fscrypt_master_key *mk
270  format_mk_user_description(description, identifier)
271  返回:Search ->s_master_keys or ->mk_users
调用者
名称描述
remove_master_key_userRemove the current user's "key" from ->mk_users.* The master key's key->sem must be held for write.* Returns 0 if removed, -ENOKEY if not found, or another -errno code.
add_existing_master_key
fscrypt_verify_key_addedVerify that the current user has added a master key with the given identifier* (returns -ENOKEY if not)
fscrypt_ioctl_get_key_statusRetrieve the status of an fscrypt master encryption key