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)