Home
last modified time | relevance | path

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

/Linux-v5.4/security/integrity/ima/
Dima_template_lib.c33 struct ima_field_data *field_data) in ima_write_template_field_data() argument
60 field_data->data = buf; in ima_write_template_field_data()
61 field_data->len = buflen; in ima_write_template_field_data()
68 struct ima_field_data *field_data) in ima_show_template_data_ascii() argument
70 u8 *buf_ptr = field_data->data; in ima_show_template_data_ascii()
71 u32 buflen = field_data->len; in ima_show_template_data_ascii()
75 buf_ptr = strnchr(field_data->data, buflen, ':'); in ima_show_template_data_ascii()
76 if (buf_ptr != field_data->data) in ima_show_template_data_ascii()
77 seq_printf(m, "%s", field_data->data); in ima_show_template_data_ascii()
81 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.c325 struct ima_field_data *field_data = &(*entry)->template_data[i]; in ima_restore_template_data() local
326 u8 *data = field_data->data; in ima_restore_template_data()
329 kzalloc(field_data->len + 1, GFP_KERNEL); in ima_restore_template_data()
334 memcpy((*entry)->template_data[i].data, data, field_data->len); in ima_restore_template_data()
335 (*entry)->template_data_len += sizeof(field_data->len); in ima_restore_template_data()
336 (*entry)->template_data_len += field_data->len; in ima_restore_template_data()
Dima_crypto.c466 static int ima_calc_field_array_hash_tfm(struct ima_field_data *field_data, in ima_calc_field_array_hash_tfm() argument
485 u8 *data_to_hash = field_data[i].data; in ima_calc_field_array_hash_tfm()
486 u32 datalen = field_data[i].len; in ima_calc_field_array_hash_tfm()
512 int ima_calc_field_array_hash(struct ima_field_data *field_data, in ima_calc_field_array_hash() argument
523 rc = ima_calc_field_array_hash_tfm(field_data, desc, num_fields, in ima_calc_field_array_hash()
Dima.h79 struct ima_field_data *field_data);
81 struct ima_field_data *field_data);
140 int ima_calc_field_array_hash(struct ima_field_data *field_data,