函数逻辑报告 |
Source Code:security\integrity\ima\ima_api.c |
Create Date:2022-07-27 22:02:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ma_store_measurement - store file measurement* Create an "ima" template and then store the template by calling* ima_store_template
函数原型:void ima_store_measurement(struct integrity_iint_cache *iint, struct file *file, const unsigned char *filename, struct evm_ima_xattr_data *xattr_value, int xattr_len, const struct modsig *modsig, int pcr, struct ima_template_desc *template_desc)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct integrity_iint_cache * | iint | |
| struct file * | file | |
| const unsigned char * | filename | |
| struct evm_ima_xattr_data * | xattr_value | |
| int | xattr_len | |
| const struct modsig * | modsig | |
| int | pcr | |
| struct ima_template_desc * | template_desc |
| 299 | op[]等于"add_template_measure" |
| 300 | audit_cause[]等于"ENOMEM" |
| 302 | inode等于file_inode(file) |
| 304 | struct ima_event_data event_data = {iint = iint, file = file, filename = filename, xattr_value = xattr_value, xattr_len = xattr_len, modsig = modsig} |
| 310 | violation等于0 |
| 318 | 如果measured_pcrs按位与0x1左移pcr位且非modsig则返回 |
| 322 | 如果result小于0则 |
| 323 | integrity_audit_msg(PCR invalidation msgs , inode, filename, op, audit_cause, result, 0) |
| 325 | 返回 |
| 330 | flags或等于IMA_MEASURED |
| 331 | measured_pcrs或等于0x1左移pcr位 |
| 名称 | 描述 |
|---|---|
| process_measurement |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |