Home
last modified time | relevance | path

Searched refs:template_data (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/security/integrity/ima/
Dima_template.c302 void *template_data, in ima_restore_template_data() argument
309 *entry = kzalloc(struct_size(*entry, template_data, in ima_restore_template_data()
314 ret = ima_parse_buf(template_data, template_data + template_data_size, in ima_restore_template_data()
316 (*entry)->template_data, NULL, NULL, in ima_restore_template_data()
325 struct ima_field_data *field_data = &(*entry)->template_data[i]; in ima_restore_template_data()
328 (*entry)->template_data[i].data = in ima_restore_template_data()
330 if (!(*entry)->template_data[i].data) { in ima_restore_template_data()
334 memcpy((*entry)->template_data[i].data, data, field_data->len); in ima_restore_template_data()
Dima_api.c28 kfree(entry->template_data[i].data); in ima_free_template_entry()
48 *entry = kzalloc(struct_size(*entry, template_data, in ima_alloc_init_template()
60 &((*entry)->template_data[i])); in ima_alloc_init_template()
64 len = (*entry)->template_data[i].len; in ima_alloc_init_template()
109 result = ima_calc_field_array_hash(&entry->template_data[0], in ima_store_template()
Dima_fs.c185 field->field_show(m, show, &e->template_data[i]); in ima_measurements_show()
246 if (e->template_data[i].len == 0) in ima_ascii_measurements_show()
250 &e->template_data[i]); in ima_ascii_measurements_show()
Dima.h98 struct ima_field_data template_data[0]; /* template related data */ member
/Linux-v5.4/drivers/net/wireless/ti/wlcore/
Dcmd.h410 u8 template_data[WL1271_CMD_TEMPL_MAX_SIZE]; member
Dcmd.c1040 memcpy(cmd->template_data, buf, buf_len); in wl1271_cmd_template_set()