|
|
dd3bb8 |
From 9e0cf4082ddbefab8558ce1349e22f6f1777040d Mon Sep 17 00:00:00 2001
|
|
|
dd3bb8 |
From: olsajiri <42811547+olsajiri@users.noreply.github.com>
|
|
|
dd3bb8 |
Date: Wed, 11 Dec 2019 17:57:39 +0100
|
|
|
dd3bb8 |
Subject: [PATCH] Add support for AUDIT_BPF event (#104)
|
|
|
dd3bb8 |
|
|
|
dd3bb8 |
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
|
|
|
dd3bb8 |
---
|
|
|
dd3bb8 |
lib/libaudit.h | 4 ++++
|
|
|
dd3bb8 |
lib/msg_typetab.h | 1 +
|
|
|
dd3bb8 |
2 files changed, 5 insertions(+)
|
|
|
dd3bb8 |
|
|
|
dd3bb8 |
diff --git a/lib/libaudit.h b/lib/libaudit.h
|
|
|
dd3bb8 |
index ac22e2c..0eea55f 100644
|
|
|
dd3bb8 |
--- a/lib/libaudit.h
|
|
|
dd3bb8 |
+++ b/lib/libaudit.h
|
|
|
dd3bb8 |
@@ -290,6 +290,10 @@ extern "C" {
|
|
|
dd3bb8 |
#define AUDIT_TIME_ADJNTPVAL 1333 /* NTP value adjustment */
|
|
|
dd3bb8 |
#endif
|
|
|
dd3bb8 |
|
|
|
dd3bb8 |
+#ifndef AUDIT_BPF
|
|
|
dd3bb8 |
+#define AUDIT_BPF 1334 /* BPF load/unload */
|
|
|
dd3bb8 |
+#endif
|
|
|
dd3bb8 |
+
|
|
|
dd3bb8 |
#ifndef AUDIT_MAC_CALIPSO_ADD
|
|
|
dd3bb8 |
#define AUDIT_MAC_CALIPSO_ADD 1418 /* NetLabel: add CALIPSO DOI entry */
|
|
|
dd3bb8 |
#endif
|
|
|
dd3bb8 |
diff --git a/lib/msg_typetab.h b/lib/msg_typetab.h
|
|
|
dd3bb8 |
index d668f34..81b1ea5 100644
|
|
|
dd3bb8 |
--- a/lib/msg_typetab.h
|
|
|
dd3bb8 |
+++ b/lib/msg_typetab.h
|
|
|
dd3bb8 |
@@ -125,6 +125,7 @@ _S(AUDIT_KERN_MODULE, "KERN_MODULE" )
|
|
|
dd3bb8 |
_S(AUDIT_FANOTIFY, "FANOTIFY" )
|
|
|
dd3bb8 |
_S(AUDIT_TIME_INJOFFSET, "TIME_INJOFFSET" )
|
|
|
dd3bb8 |
_S(AUDIT_TIME_ADJNTPVAL, "TIME_ADJNTPVAL" )
|
|
|
dd3bb8 |
+_S(AUDIT_BPF, "BPF" )
|
|
|
dd3bb8 |
_S(AUDIT_AVC, "AVC" )
|
|
|
dd3bb8 |
_S(AUDIT_SELINUX_ERR, "SELINUX_ERR" )
|
|
|
dd3bb8 |
_S(AUDIT_AVC_PATH, "AVC_PATH" )
|