函数逻辑报告 |
Source Code:security\integrity\ima\ima_queue.c |
Create Date:2022-07-27 21:58:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Add template entry to the measurement list and hash table, and* extend the pcr.* On systems which support carrying the IMA measurement list across* kexec, maintain the total memory size required for serializing the* binary_runtime_measurements.
函数原型:int ima_add_template_entry(struct ima_template_entry *entry, int violation, const char *op, struct inode *inode, const unsigned char *filename)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ima_template_entry * | entry | |
int | violation | |
const char * | op | |
struct inode * | inode | |
const unsigned char * | filename |
169 | audit_cause等于"hash_added" |
171 | audit_info等于1 |
175 | 如果非violation则 |
176 | memcpy(digest, sha1 or md5 measurement hash , digest的长度) |
185 | 如果result小于0则 |
194 | tpmresult等于Return the amount of memory required for serializing the* entire binary_runtime_measurement list, including the ima_kexec_hdr* structure. |
195 | 如果tpmresult不等于0则 |
199 | audit_info等于0 |
201 | out : |
203 | integrity_audit_msg(PCR invalidation msgs , inode, filename, op, audit_cause, result, audit_info) |
205 | 返回:result |
名称 | 描述 |
---|---|
ima_store_template | ma_store_template - store ima template measurements* Calculate the hash of a template entry, add the template entry* to an ordered list of measurement entries maintained inside the kernel,* and also update the aggregate integrity value (maintained inside |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |