函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

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

返回类型:int

参数:

类型参数名称
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  如果是错误则返回:错误
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  返回:err
调用者
名称描述
do_remove_keyTry to remove an fscrypt master encryption key