[apparmor] [patch] Add support for change_profile rules to aa-mergeprof

Christian Boltz apparmor at cboltz.de
Mon May 25 12:06:49 UTC 2015


Hello,

$subject :-)


[ 32-mergeprof-add-change_profile-support.diff ]

=== modified file utils/aa-mergeprof
--- utils/aa-mergeprof  2015-05-25 13:33:23.745634909 +0200
+++ utils/aa-mergeprof  2015-05-25 13:39:18.967966836 +0200
@@ -626,7 +626,7 @@
                             elif re.search('\d', ans):
                                 default_option = ans
 
-            for ruletype in ['capability', 'network']:
+            for ruletype in ['capability', 'network', 'change_profile']:
                 if other.aa[profile][hat].get(ruletype, False): # needed until we have proper profile initialization
                     for rule_obj in other.aa[profile][hat][ruletype].rules:
 


Regards,

Christian Boltz
-- 
Das ist die Goldene Regel für das Performancetuning von
UNIX-Systemen: RAM ist nur durch mehr RAM zu ersetzen.
[Kristian Koehntopp in suse-linux]




More information about the AppArmor mailing list