Lines Matching defs:template
127 struct ima_template_desc *template;
399 * entry->template->fields may be allocated in ima_parse_rule() but that
741 * @template_desc: the template that should be used for this rule
798 if (template_desc && entry->template)
799 *template_desc = entry->template;
1138 {Opt_template, "template=%s"},
1213 * the 'd-modsig' field in the template.
1215 static void check_template_modsig(const struct ima_template_desc *template)
1217 #define MSG "template with 'modsig' field also needs 'd-modsig' field\n"
1227 for (i = 0; i < template->num_fields; i++) {
1228 if (!strcmp(template->fields[i]->field_id, "modsig"))
1230 else if (!strcmp(template->fields[i]->field_id, "d-modsig"))
1242 * Warn if the template does not contain the given field.
1244 static void check_template_field(const struct ima_template_desc *template,
1249 for (i = 0; i < template->num_fields; i++)
1250 if (!strcmp(template->fields[i]->field_id, field))
1902 ima_log_string(ab, "template", args[0].from);
1908 if (!template_desc || entry->template) {
1915 * the template is already initialised, so
1921 entry->template = template_desc;
1935 template_desc = entry->template ? entry->template :
1940 /* d-ngv2 template field recommended for unsigned fs-verity digests */
1943 template_desc = entry->template ? entry->template :
2307 if (entry->template)
2308 seq_printf(m, "template=%s ", entry->template->name);