summaryrefslogtreecommitdiffstats
path: root/security/apparmor/audit.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2012-03-14 13:30:36 +0100
committerJohn Johansen <john.johansen@canonical.com>2012-03-14 19:09:13 -0700
commit2d4cee7e3a2b9f9c3237672cc136e20dbad0e2ce (patch)
tree5ec9bd7d6e135ace242941d51ab1f80478e1293f /security/apparmor/audit.c
parentad5ff3db53c68c2f12936bc74ea5dfe0af943592 (diff)
downloadlinux-stable-2d4cee7e3a2b9f9c3237672cc136e20dbad0e2ce.tar.gz
linux-stable-2d4cee7e3a2b9f9c3237672cc136e20dbad0e2ce.tar.bz2
linux-stable-2d4cee7e3a2b9f9c3237672cc136e20dbad0e2ce.zip
AppArmor: add const qualifiers to string arrays
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/audit.c')
-rw-r--r--security/apparmor/audit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/apparmor/audit.c b/security/apparmor/audit.c
index 61344b56722e..5ff67776a5ad 100644
--- a/security/apparmor/audit.c
+++ b/security/apparmor/audit.c
@@ -19,7 +19,7 @@
#include "include/audit.h"
#include "include/policy.h"
-const char *op_table[] = {
+const char *const op_table[] = {
"null",
"sysctl",
@@ -73,7 +73,7 @@ const char *op_table[] = {
"profile_remove"
};
-const char *audit_mode_names[] = {
+const char *const audit_mode_names[] = {
"normal",
"quiet_denied",
"quiet",
@@ -81,7 +81,7 @@ const char *audit_mode_names[] = {
"all"
};
-static char *aa_audit_type[] = {
+static const char *const aa_audit_type[] = {
"AUDIT",
"ALLOWED",
"DENIED",