Lines Matching full:template
9 * Helpers to manage template descriptors.
53 * need to be accounted for since they shouldn't be defined in the same template
61 * ima_template_has_modsig - Check whether template has modsig-related fields.
62 * @ima_template: IMA template to check.
64 * Tells whether the given template has fields referencing a file's appended
91 * Verify that a template with the supplied name exists. in ima_template_setup()
96 pr_err("template %s not found, using %s\n", in ima_template_setup()
103 * by the 'ima' template. in ima_template_setup()
107 pr_err("template does not support hash alg\n"); in ima_template_setup()
125 pr_err("format string '%s' not valid, using template %s\n", in ima_template_fmt_setup()
261 struct ima_template_desc *template = ima_template_desc_current(); in ima_init_template() local
264 result = template_desc_init_fields(template->fmt, in ima_init_template()
265 &(template->fields), in ima_init_template()
266 &(template->num_fields)); in ima_init_template()
268 pr_err("template %s init failed, result: %d\n", in ima_init_template()
269 (strlen(template->name) ? in ima_init_template()
270 template->name : template->fmt), result); in ima_init_template()
282 pr_err("attempting to initialize the template \"%s\" failed\n", in restore_template_fmt()
332 ENFORCE_FIELDS | ENFORCE_BUFEND, "template data"); in ima_restore_template_data()
408 * v1 format: pcr, digest, template-name-len, template-name, in ima_restore_measurement_list()
409 * template-data-size, template-data in ima_restore_measurement_list()
422 pr_err("attempting to restore a template name that is too long\n"); in ima_restore_measurement_list()
427 /* template name is not null terminated */ in ima_restore_measurement_list()
433 pr_err("attempting to restore an unsupported template \"%s\" failed\n", in ima_restore_measurement_list()
447 * Only the running system's template format is initialized in ima_restore_measurement_list()
448 * on boot. As needed, initialize the other template formats. in ima_restore_measurement_list()
454 pr_err("attempting to restore the template fmt \"%s\" failed\n", in ima_restore_measurement_list()
472 pr_err("cannot calculate template digest\n"); in ima_restore_measurement_list()