evm: mark evm_fixmode as __ro_after_init
authorAustin Kim <austin.kim@lge.com>
Thu, 28 Oct 2021 11:26:42 +0000 (12:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:40:23 +0000 (11:40 +0100)
commit8125c6effbcba18897125a656faad8893aa37096
treeccf747dbb6ed1f5ead290e52a2fc6d234e47a7ef
parentcbdbd77d9ba69712e38a742fcb94ba34fcfe616f
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>
security/integrity/evm/evm_main.c