Menu

#31 Update for audit service to unmatched apparmor entries

Unstable (example)
closed
None
5
2014-09-09
2013-05-28
Chris
No

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.

Discussion

  • Chris

    Chris - 2013-05-28

    Fix for unmatched apparmor entries

     
  • Chris

    Chris - 2013-05-30

    Optimized version of the patch

     
  • Chris

    Chris - 2013-05-30

    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.

     
  • Stefan Jakobs

    Stefan Jakobs - 2014-09-09
    • status: open --> closed
    • assigned_to: Stefan Jakobs
    • Group: --> Unstable (example)
     
  • Stefan Jakobs

    Stefan Jakobs - 2014-09-09

    Thanks. Commited: rev223

     

Log in to post a comment.