Home
last modified time | relevance | path

Searched refs:field_data (Results 1 – 5 of 5) sorted by relevance

/kernel/linux/linux-5.10/security/integrity/ima/
Dima_template_lib.c31 struct ima_field_data *field_data) in ima_write_template_field_data() argument
58 field_data->data = buf; in ima_write_template_field_data()
59 field_data->len = buflen; in ima_write_template_field_data()
66 struct ima_field_data *field_data) in ima_show_template_data_ascii() argument
68 u8 *buf_ptr = field_data->data; in ima_show_template_data_ascii()
69 u32 buflen = field_data->len; in ima_show_template_data_ascii()
73 buf_ptr = strnchr(field_data->data, buflen, ':'); in ima_show_template_data_ascii()
74 if (buf_ptr != field_data->data) in ima_show_template_data_ascii()
75 seq_printf(m, "%s", field_data->data); in ima_show_template_data_ascii()
79 buflen -= buf_ptr - field_data->data; in ima_show_template_data_ascii()
[all …]
Dima_template_lib.h21 struct ima_field_data *field_data);
23 struct ima_field_data *field_data);
25 struct ima_field_data *field_data);
27 struct ima_field_data *field_data);
29 struct ima_field_data *field_data);
34 struct ima_field_data *field_data);
36 struct ima_field_data *field_data);
38 struct ima_field_data *field_data);
40 struct ima_field_data *field_data);
42 struct ima_field_data *field_data);
[all …]
Dima_template.c341 struct ima_field_data *field_data = &(*entry)->template_data[i]; in ima_restore_template_data() local
342 u8 *data = field_data->data; in ima_restore_template_data()
345 kzalloc(field_data->len + 1, GFP_KERNEL); in ima_restore_template_data()
350 memcpy((*entry)->template_data[i].data, data, field_data->len); in ima_restore_template_data()
351 (*entry)->template_data_len += sizeof(field_data->len); in ima_restore_template_data()
352 (*entry)->template_data_len += field_data->len; in ima_restore_template_data()
Dima_crypto.c583 static int ima_calc_field_array_hash_tfm(struct ima_field_data *field_data, in ima_calc_field_array_hash_tfm() argument
600 u8 *data_to_hash = field_data[i].data; in ima_calc_field_array_hash_tfm()
601 u32 datalen = field_data[i].len; in ima_calc_field_array_hash_tfm()
627 int ima_calc_field_array_hash(struct ima_field_data *field_data, in ima_calc_field_array_hash() argument
633 rc = ima_calc_field_array_hash_tfm(field_data, entry, ima_sha1_idx); in ima_calc_field_array_hash()
656 rc = ima_calc_field_array_hash_tfm(field_data, entry, i); in ima_calc_field_array_hash()
Dima.h85 struct ima_field_data *field_data);
87 struct ima_field_data *field_data);
146 int ima_calc_field_array_hash(struct ima_field_data *field_data,