[apparmor] [patch] [22/38] Add get_perms_for_path() and get_rules_for_path() to FileRuleset

Steve Beattie steve at nxnw.org
Thu Sep 22 21:17:55 UTC 2016


On Fri, Aug 12, 2016 at 11:00:11PM +0200, Christian Boltz wrote:
> this patch adds
> - get_rules_for_path() returns all rules matching the given path
>   (both exact matches and AARE matches)
> - get_perms_for_path() returns the merged permissions for the given
>   path and a list of paths used in the matching rules
> 
> Also add tests for these two functions.
> 
> [ 22-add-get-perms-for-path.diff ]

I'm okay with this as-is, so Acked-by: Steve Beattie <steve at nxnw.org>,
but it feels like an abstraction class wrapped around the results of
get_perms_for_path() in particular might make working with them
simpler.

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/cc051d7b/attachment.pgp>


More information about the AppArmor mailing list