On Thu, Apr 09, 2015 at 12:04:13AM +0200, Christian Boltz wrote:
> Hello,
>
> Assume you have a profile like
>
> /bin/foo {
> /etc/ r,
> network,
> /usr/ r,
> }
>
> (important: there must be be a non-path rule between the two path blocks)
>
> Then run aa-logprof and add another path event. When choosing (V)iew changes,
> it will crash with a misleading
>
> File ".../utils/apparmor/aamode.py", line 205, in split_mode
> other = mode - user
> TypeError: unsupported operand type(s) for -: 'collections.defaultdict'
> and 'set'
>
> The reason for this is our beloved hasher, which is playing funny games
> another time.
>
> The patch wraps the hasher usage with a check for the parent element to
> avoid auto-creation of empty childs, which then lead to the above crash.
>
>
> BTW: This is another issue uncovered by the LibreOffice profile ;-)
>
> I propose this patch for trunk and 2.9
>
>
> [ 36-fix-crash-in-serialize_profile_from_old_profiles.diff ]Acked-by: Steve Beattie <[email protected]> for trunk and 2.9. Thanks. -- Steve Beattie <[email protected]> http://NxNW.org/~steve/
signature.asc
Description: Digital signature
-- AppArmor mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
