Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Remove 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.

Proto:static int remove_master_key_user(struct fscrypt_master_key *mk)

Type:int

Parameter:

TypeParameterName
struct fscrypt_master_key *mk
310  mk_user = Find the current user's "key" in the master key's ->mk_users.* Returns ERR_PTR(-ENOKEY) if not found.
311  If IS_ERR(mk_user) Then Return PTR_ERR(mk_user)
313  err = key_unlink(Keyring which contains a key of type 'key_type_fscrypt_user' for each* user who has added this key, mk_user)
314  key_put(mk_user)
315  Return err
Caller
NameDescribe
do_remove_keyTry to remove an fscrypt master encryption key