[apparmor] [patch] [24/38] Add propose_file_rules() to propose globbed etc. file rules in aa-logprof

Steve Beattie steve at nxnw.org
Thu Sep 22 23:52:44 UTC 2016


On Fri, Aug 12, 2016 at 11:01:09PM +0200, Christian Boltz wrote:
> aa.py changes:
> - add propose_file_rules() - will propose matching paths from existing
>   rules in the profile or one of the includes
> - save user_globs if user selects '(N)ew' (will be re-used when
>   proposing rules)
> - change user_globs to a dict so that it can carry the human-readable
>   path and an AARE object for it
> - change order_globs() to ensure the original path (given as parameter)
>   is always the last item in the resulting list
> - add a ruletype switch to ask_the_questions() so that it uses
>   propose_file_rules() for file events (I don't like this
>   ruletype-specific solution too much, but everything else would make
>   things even more complicated)
> 
> Also keep aa-mergeprof ask_the_questions() in sync with aa.py.
> 
> In FileRule, add original_perms (might be set by propose_file_rules())
> 
> Finally, add some tests to ensure propose_file_rules() does what it promises.
> 
> [ 24-propose_file_rules.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/ee866113/attachment.pgp>


More information about the AppArmor mailing list