Home
last modified time | relevance | path

Searched refs:template_desc (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/security/integrity/ima/
H A Dima_template.c120 if (!template_desc) { in ima_template_setup()
337 template_desc = kzalloc(sizeof(*template_desc), GFP_KERNEL); in restore_template_fmt()
338 if (!template_desc) in restore_template_fmt()
341 template_desc->name = ""; in restore_template_fmt()
343 if (!template_desc->fmt) { in restore_template_fmt()
344 kfree(template_desc); in restore_template_fmt()
345 template_desc = NULL; in restore_template_fmt()
353 return template_desc; in restore_template_fmt()
389 (*entry)->template_desc = template_desc; in ima_restore_template_data()
490 if (!template_desc) { in ima_restore_measurement_list()
[all …]
H A Dima_api.c41 struct ima_template_desc *template_desc; in ima_alloc_init_template() local
46 template_desc = desc; in ima_alloc_init_template()
48 template_desc = ima_template_desc_current(); in ima_alloc_init_template()
51 template_desc->num_fields), GFP_NOFS); in ima_alloc_init_template()
64 (*entry)->template_desc = template_desc; in ima_alloc_init_template()
65 for (i = 0; i < template_desc->num_fields; i++) { in ima_alloc_init_template()
67 template_desc->fields[i]; in ima_alloc_init_template()
108 char *template_name = entry->template_desc->name; in ima_store_template()
192 struct ima_template_desc **template_desc, in ima_get_action() argument
200 flags, pcr, template_desc, func_data, in ima_get_action()
[all …]
H A Dima_fs.c142 template_name = (e->template_desc->name[0] != '\0') ? in ima_measurements_show()
143 e->template_desc->name : e->template_desc->fmt; in ima_measurements_show()
175 for (i = 0; i < e->template_desc->num_fields; i++) { in ima_measurements_show()
178 e->template_desc->fields[i]; in ima_measurements_show()
230 template_name = (e->template_desc->name[0] != '\0') ? in ima_ascii_measurements_show()
231 e->template_desc->name : e->template_desc->fmt; in ima_ascii_measurements_show()
243 for (i = 0; i < e->template_desc->num_fields; i++) { in ima_ascii_measurements_show()
248 e->template_desc->fields[i]->field_show(m, IMA_SHOW_ASCII, in ima_ascii_measurements_show()
H A Dima.h101 struct ima_template_desc *template_desc; /* template descriptor */ member
261 struct ima_template_desc **template_desc,
271 struct ima_template_desc *template_desc);
281 struct ima_template_desc *template_desc);
292 struct ima_template_desc **template_desc,
H A Dima_main.c47 struct ima_template_desc *template_desc = ima_template_desc_current(); in hash_setup() local
53 if (strcmp(template_desc->name, IMA_TEMPLATE_IMA_NAME) == 0) { in hash_setup()
213 struct ima_template_desc *template_desc = NULL; in process_measurement() local
234 mask, func, &pcr, &template_desc, NULL, in process_measurement()
338 strcmp(template_desc->name, IMA_TEMPLATE_IMA_NAME) != 0) { in process_measurement()
351 if (!rc && ima_template_has_modsig(template_desc) && in process_measurement()
369 template_desc); in process_measurement()
H A Dima_policy.c742 struct ima_template_desc **template_desc, in ima_match_policy() argument
749 if (template_desc && !*template_desc) in ima_match_policy()
750 *template_desc = ima_template_desc_current(); in ima_match_policy()
785 if (template_desc && entry->template) in ima_match_policy()
786 *template_desc = entry->template; in ima_match_policy()
1413 struct ima_template_desc *template_desc; in ima_parse_rule() local
1869 if (!template_desc || entry->template) { in ima_parse_rule()
1880 &(template_desc->fields), in ima_parse_rule()
1881 &(template_desc->num_fields)); in ima_parse_rule()
1882 entry->template = template_desc; in ima_parse_rule()
[all …]
H A Dima_queue.c81 size += strlen(entry->template_desc->name); in get_binary_runtime_size()
H A Dima_crypto.c588 struct ima_template_desc *td = entry->template_desc; in ima_calc_field_array_hash_tfm()
589 int num_fields = entry->template_desc->num_fields; in ima_calc_field_array_hash_tfm()