Function report |
Source Code:security\integrity\ima\ima_template_lib.c |
Create Date:2022-07-28 19:59:14 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ima_eventname_init_common
Proto:static int ima_eventname_init_common(struct ima_event_data *event_data, struct ima_field_data *field_data, bool size_limit)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct ima_event_data * | event_data | |
| struct ima_field_data * | field_data | |
| bool | size_limit |
| 371 | const char * cur_filename = NULL |
| 372 | cur_filename_len = 0 |
| 376 | If filename Then |
| 377 | cur_filename = filename |
| 380 | If Not size_limit || cur_filename_len <= IMA_EVENT_NAME_LEN_MAX Then Go to out |
| 384 | If file Then |
| 385 | cur_filename = name |
| 387 | Else cur_filename_len = IMA_EVENT_NAME_LEN_MAX |
| 393 | out : |
| 394 | Return ima_write_template_field_data(cur_filename, cur_filename_len, DATA_FMT_STRING, field_data) |
| Name | Describe |
|---|---|
| ima_eventname_init | This function writes the name of an event (with size limit). |
| ima_eventname_ng_init | This function writes the name of an event (without size limit). |
| 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 |