We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b602614 commit f8a9bc6Copy full SHA for f8a9bc6
security/lockdown/lockdown.c
@@ -16,7 +16,7 @@
16
17
static enum lockdown_reason kernel_locked_down;
18
19
-static char *lockdown_reasons[LOCKDOWN_CONFIDENTIALITY_MAX+1] = {
+static const char *const lockdown_reasons[LOCKDOWN_CONFIDENTIALITY_MAX+1] = {
20
[LOCKDOWN_NONE] = "none",
21
[LOCKDOWN_MODULE_SIGNATURE] = "unsigned module loading",
22
[LOCKDOWN_DEV_MEM] = "/dev/mem,kmem,port",
@@ -40,7 +40,7 @@ static char *lockdown_reasons[LOCKDOWN_CONFIDENTIALITY_MAX+1] = {
40
[LOCKDOWN_CONFIDENTIALITY_MAX] = "confidentiality",
41
};
42
43
-static enum lockdown_reason lockdown_levels[] = {LOCKDOWN_NONE,
+static const enum lockdown_reason lockdown_levels[] = {LOCKDOWN_NONE,
44
LOCKDOWN_INTEGRITY_MAX,
45
LOCKDOWN_CONFIDENTIALITY_MAX};
46
0 commit comments