函数逻辑报告 |
Source Code:security\integrity\evm\evm_secfs.c |
Create Date:2022-07-27 22:09:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:vm_write_key - write() for <securityfs>/evm*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Used to signal that key is on the kernel key ring
函数原型:static ssize_t evm_write_key(struct file *file, const char __user *buf, size_t count, loff_t *ppos)
返回类型:ssize_t
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
const char __user * | buf | |
size_t | count | |
loff_t * | ppos |
73 | 如果非操作权限检查或evm_initialized按位与userland has signaled key load 则返回:负EPERM |
76 | ret等于kstrtoint_from_user(buf, count, 0, & i) |
82 | 如果非i或i按位与EVM_INIT_MASK的反的值不等于0则返回:负EINVAL |
88 | 如果i按位与EVM_ALLOW_METADATA_WRITES且evm_initialized按位与EVM_KEY_MASK的值不等于0且非evm_initialized按位与EVM_ALLOW_METADATA_WRITES的值则返回:负EPERM |
93 | 如果i按位与EVM_INIT_HMAC则 |
101 | evm_initialized或等于i |
109 | 返回:count |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |