mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +00:00
Fix: fix aa-genprof to use new PromptQuestion class
The following patch: - ensures aa-genprof also uses class based prompt Acked-by: Christian Boltz <apparmor@cboltz.de>
This commit is contained in:
parent
de9fcf1def
commit
8bc6a176f6
@ -143,11 +143,11 @@ while not done_profiling:
|
|||||||
else:
|
else:
|
||||||
logmark = last_audit_entry_time()
|
logmark = last_audit_entry_time()
|
||||||
|
|
||||||
q=apparmor.hasher()
|
q = aaui.PromptQuestion()
|
||||||
q['headers'] = [_('Profiling'), program]
|
q.headers = [_('Profiling'), program]
|
||||||
q['functions'] = ['CMD_SCAN', 'CMD_FINISHED']
|
q.functions = ['CMD_SCAN', 'CMD_FINISHED']
|
||||||
q['default'] = 'CMD_SCAN'
|
q.default = 'CMD_SCAN'
|
||||||
ans, arg = aaui.UI_PromptUser(q, 'noexit')
|
ans, arg = q.promptUser('noexit')
|
||||||
|
|
||||||
if ans == 'CMD_SCAN':
|
if ans == 'CMD_SCAN':
|
||||||
lp_ret = apparmor.do_logprof_pass(logmark, passno)
|
lp_ret = apparmor.do_logprof_pass(logmark, passno)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user