mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
logparser: don't return empty AUDIT section
AUDIT events get skipped when parsing the log (they are not relevant for updating a profile), therefore stop returning an always-empty AUDIT section when reading the log.
This commit is contained in:
parent
c734839551
commit
9aa70ab710
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class ReadLog:
|
|||
self.filename = filename
|
||||
self.profile_dir = profile_dir
|
||||
self.active_profiles = active_profiles
|
||||
self.hashlog = { 'PERMITTING': {}, 'REJECTING': {}, 'AUDIT': {} } # structure inside {}: {'profilename': init_hashlog(aamode, profilename), 'profilename2': init_hashlog(...), ...}
|
||||
self.hashlog = { 'PERMITTING': {}, 'REJECTING': {} } # structure inside {}: {'profilename': init_hashlog(aamode, profilename), 'profilename2': init_hashlog(...), ...}
|
||||
self.debug_logger = DebugLogger('ReadLog')
|
||||
self.LOG = None
|
||||
self.logmark = ''
|
||||
|
|
Loading…
Add table
Reference in a new issue