Searched refs:template_data (Results 1 – 4 of 4) sorted by relevance
/security/integrity/ima/ |
D | ima_template.c | 353 void *template_data, in ima_restore_template_data() argument 361 *entry = kzalloc(struct_size(*entry, template_data, in ima_restore_template_data() 375 ret = ima_parse_buf(template_data, template_data + template_data_size, in ima_restore_template_data() 377 (*entry)->template_data, NULL, NULL, in ima_restore_template_data() 387 struct ima_field_data *field_data = &(*entry)->template_data[i]; in ima_restore_template_data() 390 (*entry)->template_data[i].data = in ima_restore_template_data() 392 if (!(*entry)->template_data[i].data) { in ima_restore_template_data() 396 memcpy((*entry)->template_data[i].data, data, field_data->len); in ima_restore_template_data() 515 &entry->template_data[0], in ima_restore_measurement_list()
|
D | ima_api.c | 28 kfree(entry->template_data[i].data); in ima_free_template_entry() 50 *entry = kzalloc(struct_size(*entry, template_data, in ima_alloc_init_template() 71 &((*entry)->template_data[i])); in ima_alloc_init_template() 75 len = (*entry)->template_data[i].len; in ima_alloc_init_template() 112 result = ima_calc_field_array_hash(&entry->template_data[0], in ima_store_template()
|
D | ima_fs.c | 184 field->field_show(m, show, &e->template_data[i]); in ima_measurements_show() 245 if (e->template_data[i].len == 0) in ima_ascii_measurements_show() 249 &e->template_data[i]); in ima_ascii_measurements_show()
|
D | ima.h | 103 struct ima_field_data template_data[]; /* template related data */ member
|