aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima_init.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-09-07 13:22:23 -0700
committerMimi Zohar <zohar@linux.ibm.com>2018-10-10 12:56:15 -0400
commitb2724d5802a77b7fb47e84d9b88b80370eccbc64 (patch)
tree59917073de892c95ac1b59b3ae8c31f2ecf76749 /security/integrity/ima/ima_init.c
parentvfs: require i_size <= SIZE_MAX in kernel_read_file() (diff)
downloadlinux-dev-b2724d5802a77b7fb47e84d9b88b80370eccbc64.tar.xz
linux-dev-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_init.c')
-rw-r--r--security/integrity/ima/ima_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/ima/ima_init.c b/security/integrity/ima/ima_init.c
index faac9ecaa0ae..59d834219cd6 100644
--- a/security/integrity/ima/ima_init.c
+++ b/security/integrity/ima/ima_init.c
@@ -25,7 +25,7 @@
#include "ima.h"
/* name for boot aggregate entry */
-static const char *boot_aggregate_name = "boot_aggregate";
+static const char boot_aggregate_name[] = "boot_aggregate";
struct tpm_chip *ima_tpm_chip;
/* Add the boot aggregate to the IMA measurement list and extend