• Home
  • Raw
  • Download

Lines Matching refs:i

70 	int i;  in ima_template_has_modsig()  local
72 for (i = 0; i < ima_template->num_fields; i++) in ima_template_has_modsig()
73 if (!strcmp(ima_template->fields[i]->field_id, "modsig") || in ima_template_has_modsig()
74 !strcmp(ima_template->fields[i]->field_id, "d-modsig")) in ima_template_has_modsig()
156 int i; in lookup_template_field() local
158 for (i = 0; i < ARRAY_SIZE(supported_fields); i++) in lookup_template_field()
159 if (strncmp(supported_fields[i].field_id, field_id, in lookup_template_field()
161 return &supported_fields[i]; in lookup_template_field()
169 int i = 0, j = 0; in template_fmt_size() local
171 while (i < template_fmt_len) { in template_fmt_size()
172 c = template_fmt[i]; in template_fmt_size()
175 i++; in template_fmt_size()
188 int i, len; in template_desc_init_fields() local
201 for (i = 0, template_fmt_ptr = template_fmt; i < template_num_fields; in template_desc_init_fields()
202 i++, template_fmt_ptr += len + 1) { in template_desc_init_fields()
213 found_fields[i] = lookup_template_field(tmp_field_id); in template_desc_init_fields()
214 if (!found_fields[i]) { in template_desc_init_fields()
221 *fields = kmalloc_array(i, sizeof(*fields), GFP_KERNEL); in template_desc_init_fields()
225 memcpy(*fields, found_fields, i * sizeof(*fields)); in template_desc_init_fields()
226 *num_fields = i; in template_desc_init_fields()
234 int i; in ima_init_template_list() local
240 for (i = 0; i < ARRAY_SIZE(builtin_templates); i++) { in ima_init_template_list()
241 list_add_tail_rcu(&builtin_templates[i].list, in ima_init_template_list()
307 int i; in ima_restore_template_data() local
324 for (i = 0; i < template_desc->num_fields; i++) { in ima_restore_template_data()
325 struct ima_field_data *field_data = &(*entry)->template_data[i]; in ima_restore_template_data()
328 (*entry)->template_data[i].data = in ima_restore_template_data()
330 if (!(*entry)->template_data[i].data) { in ima_restore_template_data()
334 memcpy((*entry)->template_data[i].data, data, field_data->len); in ima_restore_template_data()