Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP4:Update
audit.30277
audit-ausearch-do-not-require-tclass.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File audit-ausearch-do-not-require-tclass.patch of Package audit.30277
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(-) --- a/src/ausearch-parse.c +++ b/src/ausearch-parse.c @@ -2061,17 +2061,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);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor