On Fri, Aug 12, 2016 at 11:02:11PM +0200, Christian Boltz wrote:
> Hello,
> 
> if the audit.log contains an event for a non-existing profile (this can
> happen when running with a foreign log or if the user manually deleted a
> profile or hat), propose_file_rules() crashes because rule_obj is None
> instead of a profile_storage() struct.
> 
> This patch adds a check that skips events for non-existing profiles and
> hats.
> 
> Note: I'm quite sure this happens only for file events (because the
> other rule types don't have something similar to propose_file_rules(),
> therefore no backport to older versions is needed.
> 
> [ 26-avoid-logprof-crash-on-nonexisting-profiles.diff ]

Acked-by: Steve Beattie <st...@nxnw.org>. Thanks.

-- 
Steve Beattie
<sbeat...@ubuntu.com>
http://NxNW.org/~steve/

Attachment: signature.asc
Description: PGP signature

-- 
AppArmor mailing list
AppArmor@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to