[apparmor] [patch] Drop unused suggest_incs_for_path() in aa.py

Christian Boltz apparmor at cboltz.de
Fri Feb 5 21:57:22 UTC 2016


Hello,

$subject ;-)


[ 70-drop-unused-suggest_incs_for_path.diff ]

=== 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':



Regards,

Christian Boltz
-- 
> Aber sorry, habe die Schnauze voll mit Linux....
Da gehört's eindeutig nicht hin. Nimm's lieber wieder raus.
[> Juergen Jaeckel und Bernd Glueckert in suse-linux]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160205/ab5362e8/attachment.pgp>


More information about the AppArmor mailing list