On Sun, May 17, 2015 at 11:28:52PM +0200, Christian Boltz wrote:
> this patch adds a check to parse_profile_data() to detect if a file 
> contains two profiles with the same name.
> 
> Note: Two profiles with the same name, but in different files, won't be
> detected by this check.
> 
> Also add basic tests to ensure that a valid profile gets parsed, and two
> profiles with the same name inside the same file raise an exception.
> 
> (Sidenote: these simple tests improve aa.py coverage from 9% to 12%,
> which also confirms the function is too long ;-)
> 
> [ 11-parse_profile_data-check-in-file-duplicates.diff ]

Acked-by: Steve Beattie <[email protected]>.


-- 
Steve Beattie
<[email protected]>
http://NxNW.org/~steve/

Attachment: signature.asc
Description: Digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to