diff options
author | Austin Kim <austin.kim@lge.com> | 2021-10-28 12:26:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-11-17 09:48:23 +0100 |
commit | 301d33c95441b1846c57b75bb93b4fd57f6835a8 (patch) | |
tree | 614223434fdaab30473bd82ecf9853afe725b7e1 /security | |
parent | e1f71a32899a3968e795194ad690e63218a66186 (diff) | |
download | linux-stable-301d33c95441b1846c57b75bb93b4fd57f6835a8.tar.gz linux-stable-301d33c95441b1846c57b75bb93b4fd57f6835a8.tar.bz2 linux-stable-301d33c95441b1846c57b75bb93b4fd57f6835a8.zip |
evm: mark evm_fixmode as __ro_after_init
commit 32ba540f3c2a7ef61ed5a577ce25069a3d714fc9 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 81e3245aec86..b82291d10e73 100644 --- a/security/integrity/evm/evm_main.c +++ b/security/integrity/evm/evm_main.c @@ -56,7 +56,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) |