Blame SOURCES/audit-3.0-bpf-record.patch

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