Searched refs:template_desc (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/security/integrity/ima/ |
D | ima_template.c | 82 struct ima_template_desc *template_desc; in ima_template_setup() local 94 template_desc = lookup_template_desc(str); in ima_template_setup() 95 if (!template_desc) { in ima_template_setup() 111 ima_template = template_desc; in ima_template_setup() 138 struct ima_template_desc *template_desc; in lookup_template_desc() local 142 list_for_each_entry_rcu(template_desc, &defined_templates, list) { in lookup_template_desc() 143 if ((strcmp(template_desc->name, name) == 0) || in lookup_template_desc() 144 (strcmp(template_desc->fmt, name) == 0)) { in lookup_template_desc() 150 return found ? template_desc : NULL; in lookup_template_desc() 275 struct ima_template_desc *template_desc = NULL; in restore_template_fmt() local [all …]
|
D | ima_api.c | 27 for (i = 0; i < entry->template_desc->num_fields; i++) in ima_free_template_entry() 40 struct ima_template_desc *template_desc; in ima_alloc_init_template() local 44 template_desc = desc; in ima_alloc_init_template() 46 template_desc = ima_template_desc_current(); in ima_alloc_init_template() 49 template_desc->num_fields), GFP_NOFS); in ima_alloc_init_template() 53 (*entry)->template_desc = template_desc; in ima_alloc_init_template() 54 for (i = 0; i < template_desc->num_fields; i++) { in ima_alloc_init_template() 56 template_desc->fields[i]; in ima_alloc_init_template() 97 char *template_name = entry->template_desc->name; in ima_store_template() 105 int num_fields = entry->template_desc->num_fields; in ima_store_template() [all …]
|
D | ima_fs.c | 143 template_name = (e->template_desc->name[0] != '\0') ? in ima_measurements_show() 144 e->template_desc->name : e->template_desc->fmt; in ima_measurements_show() 176 for (i = 0; i < e->template_desc->num_fields; i++) { in ima_measurements_show() 179 e->template_desc->fields[i]; in ima_measurements_show() 231 template_name = (e->template_desc->name[0] != '\0') ? in ima_ascii_measurements_show() 232 e->template_desc->name : e->template_desc->fmt; in ima_ascii_measurements_show() 244 for (i = 0; i < e->template_desc->num_fields; i++) { in ima_ascii_measurements_show() 249 e->template_desc->fields[i]->field_show(m, IMA_SHOW_ASCII, in ima_ascii_measurements_show()
|
D | ima_main.c | 48 struct ima_template_desc *template_desc = ima_template_desc_current(); in hash_setup() local 54 if (strcmp(template_desc->name, IMA_TEMPLATE_IMA_NAME) == 0) { in hash_setup() 198 struct ima_template_desc *template_desc = NULL; in process_measurement() local 218 &template_desc); in process_measurement() 306 strcmp(template_desc->name, IMA_TEMPLATE_IMA_NAME) != 0) { in process_measurement() 318 if (!rc && ima_template_has_modsig(template_desc) && in process_measurement() 336 template_desc); in process_measurement() 645 struct ima_template_desc *template_desc = NULL; in process_buffer_measurement() local 655 &template_desc); in process_buffer_measurement() 667 ret = ima_alloc_init_template(&event_data, &entry, template_desc); in process_buffer_measurement()
|
D | ima.h | 96 struct ima_template_desc *template_desc; /* template descriptor */ member 210 struct ima_template_desc **template_desc); 219 struct ima_template_desc *template_desc); 224 struct ima_template_desc *template_desc); 234 struct ima_template_desc **template_desc);
|
D | ima_policy.c | 492 struct ima_template_desc **template_desc) in ima_match_policy() argument 497 if (template_desc) in ima_match_policy() 498 *template_desc = ima_template_desc_current(); in ima_match_policy() 528 if (template_desc && entry->template) in ima_match_policy() 529 *template_desc = entry->template; in ima_match_policy() 889 struct ima_template_desc *template_desc; in ima_parse_rule() local 1198 template_desc = lookup_template_desc(args[0].from); in ima_parse_rule() 1199 if (!template_desc || entry->template) { in ima_parse_rule() 1209 template_desc_init_fields(template_desc->fmt, in ima_parse_rule() 1210 &(template_desc->fields), in ima_parse_rule() [all …]
|
D | ima_queue.c | 82 size += strlen(entry->template_desc->name); in get_binary_runtime_size()
|