Fix security issue
[platform/core/uifw/tts.git] / 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);
        }