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:Find the current user's "key" in the master key's ->mk_users.* Returns ERR_PTR(-ENOKEY) if not found.

Proto:static struct key *find_master_key_user(struct fscrypt_master_key *mk)

Type:struct key

Parameter:

TypeParameterName
struct fscrypt_master_key *mk
270  format_mk_user_description(description, identifier)
271  Return Search ->s_master_keys or ->mk_users
Caller
NameDescribe
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