函数逻辑报告 |
Source Code:fs\crypto\keyring.c |
Create Date:2022-07-29 10:57:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Try to remove an fscrypt master encryption key
函数原型:static int do_remove_key(struct file *filp, void __user *_uarg, bool all_users)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | filp | |
void __user * | _uarg | |
bool | all_users |
766 | status_flags等于0 |
770 | 如果copy_from_user( & arg, uarg, arg的长度)则返回:负EFAULT |
773 | 如果非valid_key_spec( & key_spec)则返回:负EINVAL |
783 | 如果 of FSCRYPT_KEY_SPEC_TYPE_* 恒等于v1 policy keys are specified by an arbitrary 8-byte key "descriptor",* matching fscrypt_policy_v1::master_key_descriptor.且非操作权限检查则返回:负EACCES |
793 | lock for writing |
797 | 如果all_users则err等于keyring_clear(Keyring which contains a key of type 'key_type_fscrypt_user' for each* user who has added this key) |
799 | 否则err等于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. |
801 | 如果err则 |
803 | 转到:out_put_key |
805 | 如果nr_leaves_on_tree不等于0则 |
813 | err等于0 |
815 | 转到:out_put_key |
820 | dead = false |
822 | lock for writing |
828 | 如果dead则 |
833 | key_invalidate(key) |
834 | err等于0 |
835 | 否则 |
837 | err等于try_to_lock_encrypted_files(sb, mk) |
841 | err等于0 |
850 | out_put_key : |
852 | 如果err恒等于0则err等于put_user - Write a simple value into user space(status_flags, & utput ) |
854 | 返回:err |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |