From 0a24f953003e887670d6a26eedd014087d83ad87 Mon Sep 17 00:00:00 2001 From: Suyeon Hwang Date: Thu, 27 Jul 2017 15:27:35 +0900 Subject: [PATCH] Fix security issue Change-Id: Idb2aa8f06fcc449a55f00ecbd3617e537fa719fb Signed-off-by: Suyeon Hwang --- common/tts_config_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/tts_config_parser.c b/common/tts_config_parser.c index 06e4836..5f40fa9 100644 --- a/common/tts_config_parser.c +++ b/common/tts_config_parser.c @@ -529,7 +529,7 @@ int tts_parser_load_config(tts_config_s** config_info) } while (0 != ret); /* Set mode */ - if (0 > chmod(TTS_CONFIG, 0666)) { + if (0 > chmod(TTS_CONFIG, 0600)) { SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to change file mode : %d", ret); } @@ -580,7 +580,7 @@ int tts_parser_copy_xml(const char* original, const char* destination) } /* Set mode */ - if (0 > chmod(destination, 0666)) { + if (0 > chmod(destination, 0600)) { SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to change file mode : %d", ret); } -- 2.7.4