[apparmor] [patch] let logparser.py parse_event() change disconnected path events to 'ERROR'

Steve Beattie steve at nxnw.org
Tue Mar 3 02:02:13 UTC 2015


On Sat, Feb 28, 2015 at 02:16:18PM +0100, Christian Boltz wrote:
> Hello,
> 
> Am Samstag, 28. Februar 2015 schrieb Steve Beattie:
> > On Mon, Feb 23, 2015 at 10:04:28PM +0100, Christian Boltz wrote:
> > > this patch changes logparser.py parse_event() so that it changes
> > > disconnected path events to aamode 'ERROR'.
> > > 
> > > This means that aa-logprof will ignore the event instead of crashing
> > > with> 
> > >     AppArmorException: 'Unexpected rank input: var/run/nscd/passwd'
> > > 
> > > Note that I made the check as specific as possible to be sure it
> > > doesn't hide other events.
> > > 
> > > Ideally we should propose to add the attach_disconnected flag to the
> > > profile, but implementing that would be a much bigger patch ;-)
> > > 
> > > References: https://bugzilla.opensuse.org/show_bug.cgi?id=918787
> > > 
> > > I propose this patch for trunk and 2.9
> > 
> > Acked-by: Steve Beattie <steve at nxnw.org> for trunk if the following
> 
> What about 2.9? Without this patch, aa-logprof crashes if it hits a 
> disconnected path event in the log...

Sorry, when I ran into needing the additional patch to the tests, I ran
out of reviewing steam on friday night.

Acked-by: Steve Beattie <steve at nxnw.org> for 2.9.

-- 
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/20150302/5e8a5d5f/attachment.pgp>


More information about the AppArmor mailing list