函数逻辑报告 |
Source Code:security\integrity\ima\ima_template_lib.c |
Create Date:2022-07-27 22:05:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:This function writes the digest of an event (with size limit).
函数原型:int ima_eventdigest_init(struct ima_event_data *event_data, struct ima_field_data *field_data)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct ima_event_data * | event_data | |
| struct ima_field_data * | field_data |
| 271 | struct{struct ima_digest_data hdr;char digest[64];}hash |
| 275 | u8 * cur_digest = NULL |
| 276 | cur_digestsize等于0 |
| 285 | 如果ima_template_hash_algo_allowed(algo)则 |
| 294 | inode等于file_inode(file) |
| 298 | 如果result则 |
| 299 | integrity_audit_msg(Data integrity verification , inode, filename, "collect_data", "failed", result, 0) |
| 302 | 返回:result |
| 304 | cur_digest等于digest |
| 305 | cur_digestsize等于length |
| 306 | out : |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |