函数逻辑报告 |
Source Code:fs\crypto\keyring.c |
Create Date:2022-07-29 10:57:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:add_master_key
函数原型:static int add_master_key(struct super_block *sb, struct fscrypt_master_key_secret *secret, const struct fscrypt_key_specifier *mk_spec)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct super_block * | sb | |
struct fscrypt_master_key_secret * | secret | |
const struct fscrypt_key_specifier * | mk_spec |
435 | mutex_lock( & fscrypt_add_key_mutex) |
436 | retry : |
438 | 如果是错误则 |
440 | 如果err不等于负ENOKEY则转到:out_unlock |
444 | 如果err则转到:out_unlock |
447 | 否则 |
452 | lock for writing |
453 | err等于add_existing_master_key(data[0], secret) |
463 | out_unlock : |
465 | 返回:err |
名称 | 描述 |
---|---|
fscrypt_ioctl_add_key | Add a master encryption key to the filesystem, causing all files which were* encrypted with it to appear "unlocked" (decrypted) when accessed.* When adding a key for use by v1 encryption policies, this ioctl is |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |