[apparmor] [patch] let parse_profile_data() check for in-file duplicate profiles
Steve Beattie
steve at nxnw.org
Fri May 29 00:19:24 UTC 2015
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 <steve at nxnw.org>.
--
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: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150528/31f40119/attachment.pgp>
More information about the AppArmor
mailing list