mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-30 13:58:22 +00:00
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 <steve@nxnw.org> for trunk and 2.9
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user