Home
last modified time | relevance | path

Searched refs:template (Results 1 – 4 of 4) sorted by relevance

/security/integrity/ima/
Dima_template.c291 struct ima_template_desc *template = ima_template_desc_current(); in ima_init_template() local
294 result = template_desc_init_fields(template->fmt, in ima_init_template()
295 &(template->fields), in ima_init_template()
296 &(template->num_fields)); in ima_init_template()
299 (strlen(template->name) ? in ima_init_template()
300 template->name : template->fmt), result); in ima_init_template()
304 template = ima_template_desc_buf(); in ima_init_template()
305 if (!template) { in ima_init_template()
310 result = template_desc_init_fields(template->fmt, in ima_init_template()
311 &(template->fields), in ima_init_template()
[all …]
Dima_main.c450 struct ima_template_desc *template = NULL; in ima_file_mprotect() local
470 &pcr, &template, NULL, NULL); in ima_file_mprotect()
893 struct ima_template_desc *template; in process_buffer_measurement() local
910 template = ima_template_desc_buf(); in process_buffer_measurement()
911 if (!template) { in process_buffer_measurement()
927 secid, 0, func, &pcr, &template, in process_buffer_measurement()
966 ret = ima_alloc_init_template(&event_data, &entry, template); in process_buffer_measurement()
Dima_policy.c94 struct ima_template_desc *template; member
736 if (template_desc && entry->template) in ima_match_policy()
737 *template_desc = entry->template; in ima_match_policy()
1124 static void check_template_modsig(const struct ima_template_desc *template) in check_template_modsig() argument
1136 for (i = 0; i < template->num_fields; i++) { in check_template_modsig()
1137 if (!strcmp(template->fields[i]->field_id, "modsig")) in check_template_modsig()
1139 else if (!strcmp(template->fields[i]->field_id, "d-modsig")) in check_template_modsig()
1674 if (!template_desc || entry->template) { in ima_parse_rule()
1687 entry->template = template_desc; in ima_parse_rule()
1701 template_desc = entry->template ? entry->template : in ima_parse_rule()
[all …]
DKconfig63 prompt "Default template"
66 Select the default IMA measurement template.
68 The original 'ima' measurement list template contains a
71 template permits both larger hash digests and longer
72 pathnames. The configured default template can be replaced