Hello,

Am Donnerstag, 9. Oktober 2014 schrieb Kshitij Gupta:
> Somehow aa-genprof sneaked through without being updated for the ui
> changes.
> 
> The following patch:
> - ensures aa-genprof also uses class based prompt
> 
> Also, a grep for "UI_PromptUser" returns nothing for new tools.
> 
> === modified file 'utils/aa-genprof'
> --- utils/aa-genprof    2014-09-14 18:17:00 +0000
> +++ utils/aa-genprof    2014-10-08 19:45:32 +0000
> @@ -143,11 +143,11 @@
>      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)

Thanks for the quick fix!

Acked-by: Christian Boltz <[email protected]>


Regards,

Christian Boltz
-- 
ln -sf /dev/null /var/log
und nie wieder irgendwelche Systemfehler. :-)))))
[Ratti in fontlinge-devel]


-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to