Skip to content

Commit 32ba540

Browse files
Austin Kimmimizohar
Austin Kim
authored andcommitted
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 <[email protected]> Cc: [email protected] Signed-off-by: Mimi Zohar <[email protected]>
1 parent cc4299e commit 32ba540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/integrity/evm/evm_main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static struct xattr_list evm_config_default_xattrnames[] = {
7878

7979
LIST_HEAD(evm_config_xattrnames);
8080

81-
static int evm_fixmode;
81+
static int evm_fixmode __ro_after_init;
8282
static int __init evm_set_fixmode(char *str)
8383
{
8484
if (strncmp(str, "fix", 3) == 0)

0 commit comments

Comments
 (0)