diff --git a/frameworks/src/core/context/js_profiler.cpp b/frameworks/src/core/context/js_profiler.cpp index 9d5773aa8e5c1191db9c91d39228683f7f4becd8..ff905b05eaf35fba4758f2b2f89bd9c09db191e6 100644 --- a/frameworks/src/core/context/js_profiler.cpp +++ b/frameworks/src/core/context/js_profiler.cpp @@ -225,7 +225,7 @@ void JSProfiler::FlushProfilerMsg(void *data) return; } - int32_t fd = open(fullPath, O_CREAT | O_RDWR); + int32_t fd = open(fullPath, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); if (fd < 0) { HILOG_ERROR(HILOG_MODULE_ACE, "ace js profiler open error"); ace_free(fullPath);