security/integrity: constify some read-only data

Constify some static data that is never modified,
so that it is placed in .rodata.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
Eric Biggers
2018-09-07 13:22:23 -07:00
committed by Mimi Zohar
parent 691115c351
commit b2724d5802
8 changed files with 16 additions and 13 deletions

View File

@@ -51,7 +51,8 @@ int ima_alloc_init_template(struct ima_event_data *event_data,
(*entry)->template_desc = template_desc;
for (i = 0; i < template_desc->num_fields; i++) {
struct ima_template_field *field = template_desc->fields[i];
const struct ima_template_field *field =
template_desc->fields[i];
u32 len;
result = field->field_init(event_data,