From 0c216daa9fbc0a6b3a198cd032da60e9af6dfe95 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sat, 7 Mar 2015 13:24:19 +0100 Subject: [PATCH] add read_profiles() call to cmd_disable() Without it, aa-disable - didn't error out when hitting a broken profile directory - didn't find a profile if it doesn't use the default naming scheme (for example /bin/true profile hiding in bin.false) Acked-by: Steve Beattie for trunk and 2.9 --- utils/apparmor/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/apparmor/tools.py b/utils/apparmor/tools.py index ae6619dc3..d06031908 100644 --- a/utils/apparmor/tools.py +++ b/utils/apparmor/tools.py @@ -122,6 +122,8 @@ class aa_tools: sys.exit(1) def cmd_disable(self): + apparmor.read_profiles() + for (program, profile) in self.get_next_to_profile(): output_name = profile if program is None else program