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-26 11:48:23 +0100 |
| commit | a5907f337b40dc1cac71bc7ecce4297e531806d1 (patch) | |
| tree | c32520b752dd8a8c312dca0e230e6ac8b6645958 /security | |
| parent | fbb6e289bd9fdb68735465b3dd8d8735e6db167f (diff) | |
| download | linux-a5907f337b40dc1cac71bc7ecce4297e531806d1.tar.gz linux-a5907f337b40dc1cac71bc7ecce4297e531806d1.tar.bz2 linux-a5907f337b40dc1cac71bc7ecce4297e531806d1.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 976b8dce6496..0138932ef34d 100644 --- a/security/integrity/evm/evm_main.c +++ b/security/integrity/evm/evm_main.c @@ -54,7 +54,7 @@ char *evm_config_xattrnames[] = { NULL }; -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) |
