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:
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user