mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
update logparser.py to support the changed syslog format by adding
(audit:\s+)? to RE_LOG_v2_6_syslog References: https://bugs.launchpad.net/apparmor/+bug/1399027 Acked-by: Seth Arnold <seth.arnold@canonical.com> (for trunk) Acked-by: Steve Beattie <steve@nxnw.org> for 2.9 as well
This commit is contained in:
@@ -25,7 +25,7 @@ from apparmor.translations import init_translation
|
||||
_ = init_translation()
|
||||
|
||||
class ReadLog:
|
||||
RE_LOG_v2_6_syslog = re.compile('kernel:\s+(\[[\d\.\s]+\]\s+)?type=\d+\s+audit\([\d\.\:]+\):\s+apparmor=')
|
||||
RE_LOG_v2_6_syslog = re.compile('kernel:\s+(\[[\d\.\s]+\]\s+)?(audit:\s+)?type=\d+\s+audit\([\d\.\:]+\):\s+apparmor=')
|
||||
RE_LOG_v2_6_audit = re.compile('type=AVC\s+(msg=)?audit\([\d\.\:]+\):\s+apparmor=')
|
||||
# Used by netdomain to identify the operation types
|
||||
# New socket names
|
||||
|
Reference in New Issue
Block a user