[apparmor] [patch] remove unused REs in logparser.py
Steve Beattie
steve at nxnw.org
Mon Aug 18 17:05:32 UTC 2014
On Sun, Aug 17, 2014 at 07:01:53PM +0200, Christian Boltz wrote:
> this patch removes some REs that are unused in logparser.py.
>
> Those REs also exist (and are used) in aa.py.
Acked-by: Steve Beattie <steve at nxnw.org>
Thanks!
> === 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',
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20140818/07d60f9b/attachment.pgp>
More information about the AppArmor
mailing list