函数逻辑报告 |
Source Code:security\integrity\ima\ima_fs.c |
Create Date:2022-07-27 21:57:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:print format:* 32bit-le=pcr#* char[20]=template digest* 32bit-le=template name size* char[n]=template name* [eventdata length]* eventdata[n]=template specific data
函数原型:int ima_measurements_show(struct seq_file *m, void *v)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct seq_file * | m | |
| void * | v |
| 135 | bool is_ima_template = false |
| 140 | 如果(e == NULL)则返回:负1 |
| 143 | template_name等于如果name[0]不等于'\0'则name否则fmt |
| 151 | pcr等于如果非ima_canonical_fmt则pcr否则cpu_to_le32(pcr) |
| 158 | namelen等于如果非ima_canonical_fmt则strlen - Find the length of a string*@s: The string to be sized否则cpu_to_le32(strlen - Find the length of a string*@s: The string to be sized) |
| 166 | 如果字符串比较恒等于0则is_ima_template = true |
| 169 | 如果非is_ima_template则 |
| 172 | ima_putc(m, & template_data_len, template_data_len的长度) |
| 176 | 以i小于num_fields循环 |
| 177 | show等于IMA_SHOW_BINARY |
| 181 | 如果is_ima_template且字符串比较恒等于0则show等于IMA_SHOW_BINARY_NO_FIELD_LEN |
| 183 | 如果is_ima_template且字符串比较恒等于0则show等于IMA_SHOW_BINARY_OLD_STRING_FMT |
| 185 | field_show(m, show, & template related data [i]) |
| 187 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |