Noticed this reported unmatched entries:
https://sourceforge.net/tracker/?func=detail&aid=3613992&group_id=312875&atid=1316824
while using logwatch with apparmor logging and created the attached patch to match them. Maybe there is a better way to match them, suggestions are welcome.
Fix for unmatched apparmor entries
Optimized version of the patch
Just added a new patch v2 to match one more line like:
type=1400 audit(1369779761.479:740756): apparmor="ALLOWED" operation="getattr" info="Failed name lookup - deleted entry" error=-2 parent=1 profile="/usr/sbin/dovecot//null-1c//null-1d" name="/var/lib/dovecot/.temp.3733.713cbcb0f36ad061" pid=3733 comm="dovecot" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
Additional i've merged the two regexes to one and only print out the count of the ALLOWED lines.
Thanks. Commited: rev223