[apparmor] [patch] drop unused match_net_include() and match_net_includes() from aa.py
Christian Boltz
apparmor at cboltz.de
Sun May 17 19:05:50 UTC 2015
Hallo,
aa-mergeprof no longer calls match_net_includes(), which means the
function can be dropped.
After that, match_net_include() is also unused, so also drop it.
(Needless to mention that this depends on 08-mergeprof-network-rule.diff.)
[ 09-drop-match_net_include.diff ]
=== modified file utils/apparmor/aa.py
--- utils/apparmor/aa.py 2015-05-17 19:23:47.760238163 +0200
+++ utils/apparmor/aa.py 2015-05-17 21:00:23.043443000 +0200
@@ -2148,12 +2148,6 @@
return deleted
-def match_net_include(incname, family, type):
- # still used by aa-mergeprof
- network_obj = NetworkRule(family, type)
- return match_includes(incname, 'network', network_obj)
-
-
def match_includes(profile, rule_type, rule_obj):
newincludes = []
for incname in include.keys():
@@ -2186,15 +2180,6 @@
return False
-def match_net_includes(profile, family, nettype):
- newincludes = []
- for incname in include.keys():
-
- if valid_include(profile, incname) and match_net_include(incname, family, nettype):
- newincludes.append(incname)
-
- return newincludes
-
def set_logfile(filename):
''' set logfile to a) the specified filename or b) if not given, the first existing logfile from logprof.conf'''
Regards,
Christian Boltz
--
macht ja nichts, dass 95'er ist doch schnell wieder installiert ;-)
Und zur not gibts halt ein wenig geisterbeschwörung "Oh grosser Geist
von Norton ich rufe dich. Erhöre mein Flehen und zeichne mir ein Abbild
auf diese von Unrat befallene Festplatte...."
[Daniel Brachmann in suse-talk]
More information about the AppArmor
mailing list