Function report |
Source Code:security\integrity\ima\ima_fs.c |
Create Date:2022-07-28 19:57:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int ima_measurements_show(struct seq_file *m, void *v)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct seq_file * | m | |
| void * | v |
| 135 | bool is_ima_template = false |
| 140 | If (e == NULL) Then Return -1 |
| 143 | template_name = If name[0] != '\0' Then name Else fmt |
| 151 | pcr = If Not ima_canonical_fmt Then pcr Else cpu_to_le32(pcr) |
| 158 | namelen = If Not ima_canonical_fmt Then strlen - Find the length of a string*@s: The string to be sized Else cpu_to_le32(strlen - Find the length of a string*@s: The string to be sized) |
| 166 | If strcmp(template_name, IMA_TEMPLATE_IMA_NAME) == 0 Then is_ima_template = true |
| 169 | If Not is_ima_template Then |
| 170 | template_data_len = If Not ima_canonical_fmt Then template_data_len Else cpu_to_le32(template_data_len) |
| 172 | ima_putc(m, & template_data_len, size of template_data_len ) |
| 176 | When i < num_fields cycle |
| 177 | show = IMA_SHOW_BINARY |
| 181 | If is_ima_template && strcmp(field_id, "d") == 0 Then show = IMA_SHOW_BINARY_NO_FIELD_LEN |
| 183 | If is_ima_template && strcmp(field_id, "n") == 0 Then show = IMA_SHOW_BINARY_OLD_STRING_FMT |
| 185 | field_show(m, show, & template related data [i]) |
| 187 | Return 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |