diff options
author | Eric Biggers <ebiggers@google.com> | 2018-09-07 22:22:23 +0200 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2018-10-10 18:56:15 +0200 |
commit | b2724d5802a77b7fb47e84d9b88b80370eccbc64 (patch) | |
tree | 59917073de892c95ac1b59b3ae8c31f2ecf76749 /security/integrity/ima/ima_fs.c | |
parent | vfs: require i_size <= SIZE_MAX in kernel_read_file() (diff) | |
download | linux-b2724d5802a77b7fb47e84d9b88b80370eccbc64.tar.xz linux-b2724d5802a77b7fb47e84d9b88b80370eccbc64.zip |
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>
Diffstat (limited to 'security/integrity/ima/ima_fs.c')
-rw-r--r-- | security/integrity/ima/ima_fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_fs.c b/security/integrity/ima/ima_fs.c index ae9d5c766a3c..fe0ede883557 100644 --- a/security/integrity/ima/ima_fs.c +++ b/security/integrity/ima/ima_fs.c @@ -179,7 +179,8 @@ int ima_measurements_show(struct seq_file *m, void *v) /* 6th: template specific data */ for (i = 0; i < e->template_desc->num_fields; i++) { enum ima_show_type show = IMA_SHOW_BINARY; - struct ima_template_field *field = e->template_desc->fields[i]; + const struct ima_template_field *field = + e->template_desc->fields[i]; if (is_ima_template && strcmp(field->field_id, "d") == 0) show = IMA_SHOW_BINARY_NO_FIELD_LEN; |