Lines Matching defs:template
124 struct ima_template_desc *template;
394 * entry->template->fields may be allocated in ima_parse_rule() but that
726 * @template_desc: the template that should be used for this rule
783 if (template_desc && entry->template)
784 *template_desc = entry->template;
1122 {Opt_template, "template=%s"},
1196 * the 'd-modsig' field in the template.
1198 static void check_template_modsig(const struct ima_template_desc *template)
1200 #define MSG "template with 'modsig' field also needs 'd-modsig' field\n"
1210 for (i = 0; i < template->num_fields; i++) {
1211 if (!strcmp(template->fields[i]->field_id, "modsig"))
1213 else if (!strcmp(template->fields[i]->field_id, "d-modsig"))
1225 * Warn if the template does not contain the given field.
1227 static void check_template_field(const struct ima_template_desc *template,
1232 for (i = 0; i < template->num_fields; i++)
1233 if (!strcmp(template->fields[i]->field_id, field))
1860 ima_log_string(ab, "template", args[0].from);
1866 if (!template_desc || entry->template) {
1873 * the template is already initialised, so
1879 entry->template = template_desc;
1893 template_desc = entry->template ? entry->template :
1898 /* d-ngv2 template field recommended for unsigned fs-verity digests */
1901 template_desc = entry->template ? entry->template :
2257 if (entry->template)
2258 seq_printf(m, "template=%s ", entry->template->name);