Fix security issue 16/140916/1 accepted/tizen/4.0/unified/20170816.013615 accepted/tizen/4.0/unified/20170816.020048 accepted/tizen/unified/20170802.151610 submit/tizen/20170802.052926 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 27 Jul 2017 06:27:35 +0000 (15:27 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 27 Jul 2017 06:27:35 +0000 (15:27 +0900)
Change-Id: Idb2aa8f06fcc449a55f00ecbd3617e537fa719fb
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/tts_config_parser.c

index 06e4836..5f40fa9 100644 (file)
@@ -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);
        }