[apparmor] [patch] Raise AppArmorBug on unknown request_mask in logparser.py

Seth Arnold seth.arnold at canonical.com
Fri Dec 11 20:51:21 UTC 2015


On Fri, Dec 11, 2015 at 08:52:13PM +0100, Christian Boltz wrote:
> an unknown request_mask means something strange[tm] happened, so we
> should raise AppArmorBug (which gives us a full backtrace) instead of
> AppArmorException (which "just" prints an error message)

I'm not sure I like this; it feels like a useful way to catch the
send -> senw error, but it is pretty brittle about running on kernels that
may know more mediation types than the userspace, or bitflips in logs that
may turn send into Send. And I really don't know how a user is supposed to
cope with this once they run into it -- the "easy" answer is to edit
either the logs or the program and i'll let you guess which one happens
first. ;)

Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20151211/df01674b/attachment.pgp>


More information about the AppArmor mailing list