From 8bc6a176f658c750ece71b71c2a6469b2d1d65f7 Mon Sep 17 00:00:00 2001 From: Kshitij Gupta Date: Thu, 9 Oct 2014 01:37:18 +0530 Subject: [PATCH] Fix: fix aa-genprof to use new PromptQuestion class The following patch: - ensures aa-genprof also uses class based prompt Acked-by: Christian Boltz --- utils/aa-genprof | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/aa-genprof b/utils/aa-genprof index 8843c1b57..fbbe8a191 100755 --- a/utils/aa-genprof +++ b/utils/aa-genprof @@ -143,11 +143,11 @@ while not done_profiling: else: logmark = last_audit_entry_time() - q=apparmor.hasher() - q['headers'] = [_('Profiling'), program] - q['functions'] = ['CMD_SCAN', 'CMD_FINISHED'] - q['default'] = 'CMD_SCAN' - ans, arg = aaui.UI_PromptUser(q, 'noexit') + q = aaui.PromptQuestion() + q.headers = [_('Profiling'), program] + q.functions = ['CMD_SCAN', 'CMD_FINISHED'] + q.default = 'CMD_SCAN' + ans, arg = q.promptUser('noexit') if ans == 'CMD_SCAN': lp_ret = apparmor.do_logprof_pass(logmark, passno)