Function report |
Source Code:security\integrity\ima\ima_template_lib.c |
Create Date:2022-07-28 19:59:13 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ima_write_template_field_data
Proto:static int ima_write_template_field_data(const void *data, const unsigned int datalen, enum data_formats datafmt, struct ima_field_data *field_data)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const void * | data | |
| const unsigned int | datalen | |
| enum data_formats | datafmt | |
| struct ima_field_data * | field_data |
| 38 | If datafmt == DATA_FMT_STRING Then buflen = datalen + 1 |
| 41 | buf = 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). |
| 54 | If datafmt == DATA_FMT_STRING Then |
| 62 | Return 0 |
| Name | Describe |
|---|---|
| ima_eventdigest_init_common | |
| ima_eventname_init_common | |
| ima_eventsig_init | ma_eventsig_init - include the file signature as part of the template data |
| ima_eventbuf_init | ma_eventbuf_init - include the buffer(kexec-cmldine) as part of the* template data. |
| ima_eventmodsig_init | ma_eventmodsig_init - include the appended file signature as part of the* template data |
| 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 |