[apparmor] [patch][utils] Refractor prompts to class
Christian Boltz
apparmor at cboltz.de
Wed Oct 8 19:58:02 UTC 2014
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 <apparmor at cboltz.de>
Regards,
Christian Boltz
--
ln -sf /dev/null /var/log
und nie wieder irgendwelche Systemfehler. :-)))))
[Ratti in fontlinge-devel]
More information about the AppArmor
mailing list