Lines Matching defs:template

9  *      Helpers to manage template descriptors.
76 * need to be accounted for since they shouldn't be defined in the same template
86 * ima_template_has_modsig - Check whether template has modsig-related fields.
87 * @ima_template: IMA template to check.
89 * Tells whether the given template has fields referencing a file's appended
116 * Verify that a template with the supplied name exists.
121 pr_err("template %s not found, using %s\n",
128 * by the 'ima' template.
132 pr_err("template does not support hash alg\n");
150 pr_err("format string '%s' not valid, using template %s\n",
295 struct ima_template_desc *template = ima_template_desc_current();
298 result = template_desc_init_fields(template->fmt,
299 &(template->fields),
300 &(template->num_fields));
302 pr_err("template %s init failed, result: %d\n",
303 (strlen(template->name) ?
304 template->name : template->fmt), result);
308 template = ima_template_desc_buf();
309 if (!template) {
310 pr_err("Failed to get ima-buf template\n");
314 result = template_desc_init_fields(template->fmt,
315 &(template->fields),
316 &(template->num_fields));
318 pr_err("template %s init failed, result: %d\n",
319 (strlen(template->name) ?
320 template->name : template->fmt), result);
332 pr_err("attempting to initialize the template \"%s\" failed\n",
382 ENFORCE_FIELDS | ENFORCE_BUFEND, "template data");
458 * v1 format: pcr, digest, template-name-len, template-name,
459 * template-data-size, template-data
472 pr_err("attempting to restore a template name that is too long\n");
477 /* template name is not null terminated */
483 pr_err("attempting to restore an unsupported template \"%s\" failed\n",
497 * Only the running system's template format is initialized
498 * on boot. As needed, initialize the other template formats.
504 pr_err("attempting to restore the template fmt \"%s\" failed\n",
522 pr_err("cannot calculate template digest\n");