mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 06:50:12 +00:00
!2031 因resourcelimit目录的dac权限问题,用户无法老化沙箱文件
Merge pull request !2031 from 羊头军师/master
This commit is contained in:
commit
ff66f4d8e8
@ -989,7 +989,7 @@ static bool GetAppResourceLimitParam(napi_env env, napi_callback_info info, std:
|
|||||||
|
|
||||||
static bool CreateSanBoxDir()
|
static bool CreateSanBoxDir()
|
||||||
{
|
{
|
||||||
constexpr mode_t defaultLogDirMode = 0x0770;
|
constexpr mode_t defaultLogDirMode = 0770;
|
||||||
const std::string reourceLimitDir = "/data/storage/el2/log/resourcelimit/";
|
const std::string reourceLimitDir = "/data/storage/el2/log/resourcelimit/";
|
||||||
if (!OHOS::FileExists(reourceLimitDir)) {
|
if (!OHOS::FileExists(reourceLimitDir)) {
|
||||||
OHOS::ForceCreateDirectory(reourceLimitDir);
|
OHOS::ForceCreateDirectory(reourceLimitDir);
|
||||||
|
Loading…
Reference in New Issue
Block a user