Home
last modified time | relevance | path

Searched refs:template_name (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/security/integrity/ima/
Dima_template.c273 static struct ima_template_desc *restore_template_fmt(char *template_name) in restore_template_fmt() argument
278 ret = template_desc_init_fields(template_name, NULL, NULL); in restore_template_fmt()
281 template_name); in restore_template_fmt()
290 template_desc->fmt = kstrdup(template_name, GFP_KERNEL); in restore_template_fmt()
350 char template_name[MAX_TEMPLATE_NAME_LEN]; in ima_restore_measurement_list() local
411 memcpy(template_name, hdr[HDR_TEMPLATE_NAME].data, in ima_restore_measurement_list()
413 template_name[hdr[HDR_TEMPLATE_NAME].len] = 0; in ima_restore_measurement_list()
415 if (strcmp(template_name, "ima") == 0) { in ima_restore_measurement_list()
417 template_name); in ima_restore_measurement_list()
422 template_desc = lookup_template_desc(template_name); in ima_restore_measurement_list()
[all …]
Dima_fs.c133 char *template_name; in ima_measurements_show() local
143 template_name = (e->template_desc->name[0] != '\0') ? in ima_measurements_show()
158 namelen = !ima_canonical_fmt ? strlen(template_name) : in ima_measurements_show()
159 cpu_to_le32(strlen(template_name)); in ima_measurements_show()
163 ima_putc(m, template_name, strlen(template_name)); in ima_measurements_show()
166 if (strcmp(template_name, IMA_TEMPLATE_IMA_NAME) == 0) in ima_measurements_show()
223 char *template_name; in ima_ascii_measurements_show() local
231 template_name = (e->template_desc->name[0] != '\0') ? in ima_ascii_measurements_show()
241 seq_printf(m, " %s", template_name); in ima_ascii_measurements_show()
Dima_api.c97 char *template_name = entry->template_desc->name; in ima_store_template() local
114 template_name, op, in ima_store_template()