forked from pool/audit
d1358f4337
- Update to 3.1.1: * Add user friendly keywords for signals to auditctl * In ausearch, parse up URINGOP and DM_CTRL records * Harden auparse to better handle corrupt logs * Fix a CFLAGS propogation problem in the common directory * Move the audispd af_unix plugin to a standalone program - Update to 3.1.1: * Add user friendly keywords for signals to auditctl * In ausearch, parse up URINGOP and DM_CTRL records * Harden auparse to better handle corrupt logs * Fix a CFLAGS propogation problem in the common directory * Move the audispd af_unix plugin to a standalone program OBS-URL: https://build.opensuse.org/request/show/1096509 OBS-URL: https://build.opensuse.org/package/show/security/audit?expand=0&rev=148
42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
From: William Preston <wpreston@suse.com>
|
|
Subject: ausearch is looking for the "tclass" field in the entries, which doesn't make sense for apparmor.
|
|
References: bnc#878687
|
|
References: https://www.redhat.com/archives/linux-audit/2014-May/msg00094.html https://www.redhat.com/archives/linux-audit/2014-June/msg00001.html
|
|
Upstream: never
|
|
Signed-off-by: Tony Jones <tonyj@suse.de>
|
|
|
|
---
|
|
src/ausearch-parse.c | 18 ++++++++----------
|
|
1 file changed, 8 insertions(+), 10 deletions(-)
|
|
|
|
Index: audit-3.1.1/src/ausearch-parse.c
|
|
===================================================================
|
|
--- audit-3.1.1.orig/src/ausearch-parse.c
|
|
+++ audit-3.1.1/src/ausearch-parse.c
|
|
@@ -2075,17 +2075,15 @@ other_avc:
|
|
|
|
// Now get the class...its at the end, so we do things different
|
|
str = strstr(term, "tclass=");
|
|
- if (str == NULL) {
|
|
- rc = 9;
|
|
- goto err;
|
|
+ if (str) {
|
|
+ str += 7;
|
|
+ term = strchr(str, ' ');
|
|
+ if (term)
|
|
+ *term = 0;
|
|
+ an.avc_class = strdup(str);
|
|
+ if (term)
|
|
+ *term = ' ';
|
|
}
|
|
- str += 7;
|
|
- term = strchr(str, ' ');
|
|
- if (term)
|
|
- *term = 0;
|
|
- an.avc_class = strdup(str);
|
|
- if (term)
|
|
- *term = ' ';
|
|
|
|
if (audit_avc_init(s) == 0) {
|
|
alist_append(s->avc, &an);
|