[apparmor] [3/4] Change aa.py to use ChangeProfileRule and ChangeProfileRuleset
Steve Beattie
steve at nxnw.org
Thu May 28 18:24:36 UTC 2015
On Sat, May 09, 2015 at 10:39:08PM +0200, Christian Boltz wrote:
> Hello,
>
> this patch changes aa.py to use ChangeProfileRule and
> ChangeProfileRuleset instead of a sub-hasher to store and write
> change_profile rules. In detail:
> - drop all the change_profile rule parsing from parse_profile_data() and
> serialize_profile_from_old_profile() - instead, just call
> ChangeProfileRule.parse()
> - change write_change_profile to use ChangeProfileRuleset
> - add removal of superfluous/duplicate change_profile rules (the old
> code didn't do this)
>
> Note that this patch is much smaller than the NetworkRule and
> CapabilityRule patches because aa-logprof doesn't ask for adding
> change_profile rules - adding that is something for a later patch.
>
>
> [ 03-use-ChangeProfileRule.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: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20150528/48077e42/attachment.pgp>
More information about the AppArmor
mailing list