函数逻辑报告 | 
Source Code:security\integrity\ima\ima_template.c | 
Create Date:2022-07-27 22:04:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:template_desc_init_fields
函数原型:int template_desc_init_fields(const char *template_fmt, const struct ima_template_field ***fields, int *num_fields)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const char * | template_fmt | |
| const struct ima_template_field *** | fields | |
| int * | num_fields | 
| 190 | 如果num_fields且num_fields大于0则返回:0 | 
| 196 | 打印错误信息("format string '%s' contains too many fields\n", template_fmt) | 
| 198 | 返回:负EINVAL | 
| 201 | 以i小于template_num_fields循环 | 
| 206 | 如果len恒等于0或len大于IMA_TEMPLATE_FIELD_ID_MAX_LEN则 | 
| 211 | memcpy(tmp_field_id, template_fmt_ptr, len) | 
| 212 | tmp_field_id[len]等于'\0' | 
| 214 | 如果非found_fields[i]则 | 
| 215 | 打印错误信息("field '%s' not found\n", tmp_field_id) | 
| 216 | 返回:负ENOENT | 
| 220 | 如果fields且num_fields则 | 
| 225 | memcpy( * fields, found_fields, i * fields的长度) | 
| 226 | num_fields等于i | 
| 229 | 返回:0 | 
| 名称 | 描述 | 
|---|---|
| ima_parse_rule | |
| ima_template_fmt_setup | |
| ima_init_template | |
| restore_template_fmt | |
| ima_restore_measurement_list | Restore the serialized binary measurement list without extending PCRs. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |