summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAustin Kim <austin.kim@lge.com>2021-10-28 12:26:42 +0100
committerMimi Zohar <zohar@linux.ibm.com>2021-10-28 18:52:49 -0400
commit32ba540f3c2a7ef61ed5a577ce25069a3d714fc9 (patch)
tree93860a81b7e0cf0666db5fdeed5105299b94397f /security
parentcc4299ea039972e57e219e2981b74967c133d41c (diff)
evm: mark evm_fixmode as __ro_after_init
The evm_fixmode is only configurable by command-line option and it is never modified outside initcalls, so declaring it with __ro_after_init is better. Signed-off-by: Austin Kim <austin.kim@lge.com> Cc: stable@vger.kernel.org Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'security')
-rw-r--r--security/integrity/evm/evm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/evm/evm_main.c b/security/integrity/evm/evm_main.c
index 1c8435dfabee..08f907382c61 100644
--- a/security/integrity/evm/evm_main.c
+++ b/security/integrity/evm/evm_main.c
@@ -78,7 +78,7 @@ static struct xattr_list evm_config_default_xattrnames[] = {
LIST_HEAD(evm_config_xattrnames);
-static int evm_fixmode;
+static int evm_fixmode __ro_after_init;
static int __init evm_set_fixmode(char *str)
{
if (strncmp(str, "fix", 3) == 0)