Lines Matching full: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. in ima_template_setup()
121 pr_err("template %s not found, using %s\n", in ima_template_setup()
128 * by the 'ima' template. in ima_template_setup()
132 pr_err("template does not support hash alg\n"); in ima_template_setup()
150 pr_err("format string '%s' not valid, using template %s\n", in ima_template_fmt_setup()
295 struct ima_template_desc *template = ima_template_desc_current(); in ima_init_template() local
298 result = template_desc_init_fields(template->fmt, in ima_init_template()
299 &(template->fields), in ima_init_template()
300 &(template->num_fields)); in ima_init_template()
302 pr_err("template %s init failed, result: %d\n", in ima_init_template()
303 (strlen(template->name) ? in ima_init_template()
304 template->name : template->fmt), result); in ima_init_template()
308 template = ima_template_desc_buf(); in ima_init_template()
309 if (!template) { in ima_init_template()
310 pr_err("Failed to get ima-buf template\n"); in ima_init_template()
314 result = template_desc_init_fields(template->fmt, in ima_init_template()
315 &(template->fields), in ima_init_template()
316 &(template->num_fields)); in ima_init_template()
318 pr_err("template %s init failed, result: %d\n", in ima_init_template()
319 (strlen(template->name) ? in ima_init_template()
320 template->name : template->fmt), result); in ima_init_template()
332 pr_err("attempting to initialize the template \"%s\" failed\n", in restore_template_fmt()
382 ENFORCE_FIELDS | ENFORCE_BUFEND, "template data"); in ima_restore_template_data()
458 * v1 format: pcr, digest, template-name-len, template-name, in ima_restore_measurement_list()
459 * template-data-size, template-data in ima_restore_measurement_list()
472 pr_err("attempting to restore a template name that is too long\n"); in ima_restore_measurement_list()
477 /* template name is not null terminated */ in ima_restore_measurement_list()
483 pr_err("attempting to restore an unsupported template \"%s\" failed\n", in ima_restore_measurement_list()
497 * Only the running system's template format is initialized in ima_restore_measurement_list()
498 * on boot. As needed, initialize the other template formats. in ima_restore_measurement_list()
504 pr_err("attempting to restore the template fmt \"%s\" failed\n", in ima_restore_measurement_list()
522 pr_err("cannot calculate template digest\n"); in ima_restore_measurement_list()