[apparmor] [patch] [26/38] Avoid crash in aa-logprof on events for non-existing profiles

Steve Beattie steve at nxnw.org
Fri Sep 23 04:29:22 UTC 2016


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 <steve at nxnw.org>. Thanks.

-- 
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: not available
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160922/dd215010/attachment.pgp>


More information about the AppArmor mailing list