* if the currently process event has configured 'sending-sensitive-data' report-cli asks for permission to continue with processing of the event
Signed-off-by: Jakub Filak jfilak@redhat.com --- src/cli/cli-report.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/src/cli/cli-report.c b/src/cli/cli-report.c index 77ae34a..2f988fa 100644 --- a/src/cli/cli-report.c +++ b/src/cli/cli-report.c @@ -1003,6 +1003,17 @@ int run_events_chain(const char *dump_dir_name, GList *chain)
if (config) { + if (config->ec_sending_sensitive_data) + { + char *msg = xasprintf(_("Event '%s' requires permision to send possibly sensitive data." + " Do you want to continue?"), + config->screen_name ? config->screen_name : event); + const bool response = ask_yesno(msg); + free(msg); + if (!response) + break; + } + /* can't fail */ ask_for_missing_settings(event);