[apparmor] [patch] remove unused REs in logparser.py

Christian Boltz apparmor at cboltz.de
Sun Aug 17 17:01:53 UTC 2014


Hello,

this patch removes some REs that are unused in logparser.py.

Those REs also exist (and are used) in aa.py.


=== modified file 'utils/apparmor/logparser.py'
--- utils/apparmor/logparser.py 2014-07-14 19:01:15 +0000
+++ utils/apparmor/logparser.py 2014-08-17 16:28:57 +0000
@@ -27,10 +27,6 @@
 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_audit = re.compile('type=AVC\s+(msg=)?audit\([\d\.\:]+\):\s+apparmor=')
-    MODE_MAP_RE = re.compile('r|w|l|m|k|a|x|i|u|p|c|n|I|U|P|C|N')
-    PROFILE_MODE_RE = re.compile('r|w|l|m|k|a|ix|ux|px|cx|pix|cix|Ux|Px|PUx|Cx|Pix|Cix')
-    PROFILE_MODE_NT_RE = re.compile('r|w|l|m|k|a|x|ix|ux|px|cx|pix|cix|Ux|Px|PUx|Cx|Pix|Cix')
-    PROFILE_MODE_DENY_RE = re.compile('r|w|l|m|k|a|x')
     # Used by netdomain to identify the operation types
     # New socket names
     OPERATION_TYPES = {'create': 'net',




Regards,

Christian Boltz
-- 
> Versuch mal eine Seite für user zu erstellen die noch mit nem 486er
> win 95 und ie4 bzw nem alten netscape 3 durch die gegend surfen.
OK, aber du hast heute auch Probleme mit Poststationen, wo du die Pferde
deiner Kutsche tränken oder gar wechseln kannst. Irgendwann hört halt 
die Unterstützung für Auslaufmodelle auf.
[> "mrgates" und Matthias Houdek in suse-linux]




More information about the AppArmor mailing list