diff options
author | Austin Kim <austin.kim@lge.com> | 2021-10-28 14:26:42 +0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2021-10-29 01:52:49 +0300 |
commit | 32ba540f3c2a7ef61ed5a577ce25069a3d714fc9 (patch) | |
tree | 93860a81b7e0cf0666db5fdeed5105299b94397f /security | |
parent | cc4299ea039972e57e219e2981b74967c133d41c (diff) | |
download | linux-32ba540f3c2a7ef61ed5a577ce25069a3d714fc9.tar.xz |
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.c | 2 |
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) |