summaryrefslogtreecommitdiff
path: root/security/apparmor
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2022-09-12 08:05:26 +0300
committerJohn Johansen <john.johansen@canonical.com>2022-10-04 00:49:04 +0300
commit961f3e3de14467f3babe252f7b6cc44a36ebba64 (patch)
tree16a7b9cab2596c29a194f4b62baff1ab38f90066 /security/apparmor
parent1ad22fcc4d0d2fb2e0f35aed555a86d016d5e590 (diff)
downloadlinux-961f3e3de14467f3babe252f7b6cc44a36ebba64.tar.xz
apparmor: fix aa_class_names[] to match reserved classes
The class name map did not have the reserved names added. Fix this Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor')
-rw-r--r--security/apparmor/audit.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/security/apparmor/audit.c b/security/apparmor/audit.c
index e638f7bc9f52..8dfdda98fbf1 100644
--- a/security/apparmor/audit.c
+++ b/security/apparmor/audit.c
@@ -48,13 +48,28 @@ static const char *const aa_class_names[] = {
"unknown",
"ptrace",
"signal",
- "unknown",
+ "xmatch",
"unknown",
"unknown",
"net",
"unknown",
"label",
+ "posix_mqueue",
+ "io_uring",
+ "module",
"lsm",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "unknown",
+ "X",
+ "dbus",
};