From: Jihoon Kim Date: Fri, 19 Jan 2018 03:57:05 +0000 (+0900) Subject: Use secure log to write result for security X-Git-Tag: accepted/tizen/unified/20180305.062850~10 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fstt.git;a=commitdiff_plain;h=5fd284172f7e827062d67b709620e05a5c78343b Use secure log to write result for security Change-Id: Ib9c6bfe00b54a5f5e5644cf65a59f61944f9c994 Signed-off-by: Jihoon Kim --- diff --git a/client/stt.c b/client/stt.c index 2035dea..69fab4d 100644 --- a/client/stt.c +++ b/client/stt.c @@ -2094,12 +2094,12 @@ int __stt_cb_result(int uid, int event, char** data, int data_count, const char* } if (NULL != msg) - SLOG(LOG_DEBUG, TAG_STTC, "Recognition Result Message = %s", msg); + SECURE_SLOG(LOG_DEBUG, TAG_STTC, "Recognition Result Message = %s", msg); int i = 0; for (i = 0; i < data_count; i++) { if (NULL != data[i]) - SLOG(LOG_DEBUG, TAG_STTC, "Recognition Result[%d] = %s", i, data[i]); + SECURE_SLOG(LOG_DEBUG, TAG_STTC, "Recognition Result[%d] = %s", i, data[i]); } if (NULL != client->recognition_result_cb) { diff --git a/client/stt_dbus.c b/client/stt_dbus.c index 4ece6e8..d674c27 100644 --- a/client/stt_dbus.c +++ b/client/stt_dbus.c @@ -543,7 +543,7 @@ static Eina_Bool listener_event_callback(void* data, Ecore_Fd_Handler *fd_handle if (NULL != temp_char) { temp_result[i] = strdup(temp_char); - SLOG(LOG_DEBUG, TAG_STTC, "result[%d] : %s", i, temp_result[i]); + SECURE_SLOG(LOG_DEBUG, TAG_STTC, "result[%d] : %s", i, temp_result[i]); } } diff --git a/common/stt_config_mgr.c b/common/stt_config_mgr.c index 479ac08..bdd5f9c 100755 --- a/common/stt_config_mgr.c +++ b/common/stt_config_mgr.c @@ -1691,7 +1691,7 @@ int stt_config_mgr_add_time_info(int index, int event, const char* text, long st info->start_time = start_time; info->end_time = end_time; - SLOG(LOG_DEBUG, stt_tag(), "[DEBUG] inside stt_config_mgr_add_time_info: index(%d), text(%s), start time(%ld), end_time(%ld)", info->index, (NULL == info->text) ? "NULL" : info->text, info->start_time, info->end_time); + SECURE_SLOG(LOG_DEBUG, stt_tag(), "[DEBUG] inside stt_config_mgr_add_time_info: index(%d), text(%s), start time(%ld), end_time(%ld)", info->index, (NULL == info->text) ? "NULL" : info->text, info->start_time, info->end_time); /* Add item to global list */ g_time_list = g_slist_append(g_time_list, info); diff --git a/common/stt_config_parser.c b/common/stt_config_parser.c index 6a7925d..6786c71 100644 --- a/common/stt_config_parser.c +++ b/common/stt_config_parser.c @@ -891,7 +891,7 @@ int stt_parser_set_time_info(GSList* time_list) xmlNodePtr temp_node = NULL; - SLOG(LOG_DEBUG, stt_tag(), "[%d] i(%d) t(%s) s(%ld) e(%ld)", + SECURE_SLOG(LOG_DEBUG, stt_tag(), "[%d] i(%d) t(%s) s(%ld) e(%ld)", data->index, data->event, data->text, data->start_time, data->end_time); temp_node = xmlNewNode(NULL, (const xmlChar*)STT_TAG_TIME_TEXT); diff --git a/server/sttd_dbus.c b/server/sttd_dbus.c index 3efb328..b7566c3 100644 --- a/server/sttd_dbus.c +++ b/server/sttd_dbus.c @@ -315,7 +315,7 @@ int sttdc_send_result(int uid, int event, const char** data, int data_count, con SLOG(LOG_DEBUG, TAG_STTD, "[Dbus] result size (%d)", data_count); for (i = 0; i < data_count; i++) { if (NULL != data[i]) { - SLOG(LOG_DEBUG, TAG_STTD, "[Dbus] result (%d, %s)", i, data[i]); + SECURE_SLOG(LOG_DEBUG, TAG_STTD, "[Dbus] result (%d, %s)", i, data[i]); if (!dbus_message_iter_append_basic(&args, DBUS_TYPE_STRING, &data[i])) { SLOG(LOG_ERROR, TAG_STTD, "[Dbus] response message : Fail to append result data"); diff --git a/server/sttd_server.c b/server/sttd_server.c index 8fcee24..cf727a7 100644 --- a/server/sttd_server.c +++ b/server/sttd_server.c @@ -313,7 +313,7 @@ bool __server_result_time_callback(int index, stte_result_time_event_e event, co { pthread_mutex_lock(&stte_result_time_mutex); - SLOG(LOG_DEBUG, TAG_STTD, "[Server] index(%d) event(%d) text(%s) start(%ld) end(%ld)", + SECURE_SLOG(LOG_DEBUG, TAG_STTD, "[Server] index(%d) event(%d) text(%s) start(%ld) end(%ld)", index, event, text, start_time, end_time); int ret;