[apparmor] [patch] Drop unused suggest_incs_for_path() in aa.py
Seth Arnold
seth.arnold at canonical.com
Fri Feb 5 23:12:23 UTC 2016
On Fri, Feb 05, 2016 at 10:57:22PM +0100, Christian Boltz wrote:
> Hello,
>
> $subject ;-)
>
>
> [ 70-drop-unused-suggest_incs_for_path.diff ]
Acked-by: Seth Arnold <seth.arnold at canonical.com>
Thanks
> === modified file 'utils/apparmor/aa.py'
> --- utils/apparmor/aa.py 2016-01-26 06:54:53 +0000
> +++ utils/apparmor/aa.py 2016-02-05 21:52:09 +0000
> @@ -4252,29 +4252,6 @@
>
> return combinedmode, combinedaudit, matches
>
> -def suggest_incs_for_path(incname, path, allow):
> - combinedmode = set()
> - combinedaudit = set()
> - matches = []
> -
> - includelist = [incname]
> - while includelist:
> - inc = includelist.pop(0)
> - cm, am, m = rematchfrag(include[inc][inc], 'allow', path)
> - if cm:
> - combinedmode |= cm
> - combinedaudit |= am
> - matches += m
> -
> - if include[inc][inc]['allow']['path'].get(path, False):
> - combinedmode |= include[inc][inc]['allow']['path'][path]['mode']
> - combinedaudit |= include[inc][inc]['allow']['path'][path]['audit']
> -
> - if include[inc][inc]['include'].keys():
> - includelist += include[inc][inc]['include'].keys()
> -
> - return combinedmode, combinedaudit, matches
> -
> def check_qualifiers(program):
> if cfg['qualifiers'].get(program, False):
> if cfg['qualifiers'][program] != 'p':
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160205/081357d1/attachment.pgp>
More information about the AppArmor
mailing list