!2031 因resourcelimit目录的dac权限问题,用户无法老化沙箱文件

Merge pull request !2031 from 羊头军师/master
This commit is contained in:
openharmony_ci 2024-11-18 13:59:19 +00:00 committed by Gitee
commit ff66f4d8e8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);