函数逻辑报告 |
Source Code:security\integrity\ima\ima_init.c |
Create Date:2022-07-27 21:58:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Add the boot aggregate to the IMA measurement list and extend* the PCR register.* Calculate the boot aggregate, a SHA1 over tpm registers 0-7,* assuming a TPM chip exists, and zeroes if the TPM chip does not* exist
函数原型:static int __init ima_add_boot_aggregate(void)
返回类型:int
参数:无
| 44 | op[]等于"add_boot_aggregate" |
| 45 | audit_cause等于"ENOMEM" |
| 47 | iint等于tmp_iint |
| 48 | struct ima_event_data event_data = {iint = iint, filename = ame for boot aggregate entry } |
| 51 | violation等于0 |
| 52 | struct{struct ima_digest_data hdr;char digest[20];}hash |
| 60 | algo等于HASH_ALGO_SHA1 |
| 63 | 如果ima_tpm_chip则 |
| 64 | result等于ima_calc_boot_aggregate( & hdr) |
| 65 | 如果result小于0则 |
| 66 | audit_cause等于"hashing_error" |
| 67 | 转到:err_out |
| 71 | result等于ima_alloc_init_template( & event_data, & entry, NULL) |
| 72 | 如果result小于0则 |
| 73 | audit_cause等于"alloc_entry" |
| 74 | 转到:err_out |
| 80 | 如果result小于0则 |
| 85 | 返回:0 |
| 86 | err_out : |
| 87 | integrity_audit_msg(PCR invalidation msgs , NULL, ame for boot aggregate entry , op, audit_cause, result, 0) |
| 89 | 返回:result |
| 名称 | 描述 |
|---|---|
| ima_init |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |