Function report |
Source Code:security\integrity\ima\ima_template.c |
Create Date:2022-07-28 19:59:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ima_restore_template_data
Proto:static int ima_restore_template_data(struct ima_template_desc *template_desc, void *template_data, int template_data_size, struct ima_template_entry **entry)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct ima_template_desc * | template_desc | |
void * | template_data | |
int | template_data_size | |
struct ima_template_entry ** | entry |
306 | ret = 0 |
309 | entry = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
314 | ret = ima_parse_buf(template_data, template_data + template_data_size, NULL, num_fields, template related data , NULL, NULL, ENFORCE_FIELDS | ENFORCE_BUFEND, "template data") |
318 | If ret < 0 Then |
324 | When i < num_fields cycle |
325 | field_data = template related data [i] |
328 | data = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
330 | If Not data Then |
335 | template_data_len += size of len |
336 | template_data_len += len |
339 | If ret < 0 Then |
341 | * entry = NULL |
344 | Return ret |
Name | Describe |
---|---|
ima_restore_measurement_list | Restore the serialized binary measurement list without extending PCRs. |
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 |