From abbeeb5fcf2fbca2a7e8b6d756a20952f0f96704 Mon Sep 17 00:00:00 2001 From: Zheng Yongjun Date: Tue, 17 May 2022 21:18:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=86=97=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=8F=8A=E5=88=A0=E9=99=A4=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E6=B2=99=E7=AE=B1=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zheng Yongjun --- util/src/sandbox_utils.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/util/src/sandbox_utils.cpp b/util/src/sandbox_utils.cpp index cd3cf164..556c44a3 100644 --- a/util/src/sandbox_utils.cpp +++ b/util/src/sandbox_utils.cpp @@ -431,10 +431,6 @@ int32_t SandboxUtils::SetCommonAppSandboxProperty(const ClientSocket::AppPropert if (strcmp(appProperty->apl, APL_SYSTEM_BASIC.data()) == 0 || strcmp(appProperty->apl, APL_SYSTEM_CORE.data()) == 0) { - // account_0/applications/ dir can still access other packages' data now for compatibility purpose - std::string destapplicationsPath = sandboxPackagePath + SANDBOX_APP_INSTALL_PATH; - DoAppSandboxMountOnce(PHYSICAL_APP_INSTALL_PATH.c_str(), destapplicationsPath.c_str(), BASIC_MOUNT_FLAGS); - // need permission check for system app here std::string destbundlesPath = sandboxPackagePath + DATA_BUNDLES; DoAppSandboxMountOnce(PHYSICAL_APP_INSTALL_PATH.c_str(), destbundlesPath.c_str(), BASIC_MOUNT_FLAGS); @@ -480,7 +476,6 @@ int32_t SandboxUtils::DoSandboxRootFolderCreate(const ClientSocket::AppProperty bool SandboxUtils::CheckTotalSandboxSwitchStatus(const ClientSocket::AppProperty *appProperty) { nlohmann::json wholeConfig = SandboxUtils::GetJsonConfig(); - HiLog::Error(LABEL, "CheckAppSandboxSwitchStatus total start, %{public}s", appProperty->bundleName); nlohmann::json commonAppConfig = wholeConfig[COMMON_PREFIX][0]; if (commonAppConfig.find(TOP_SANDBOX_SWITCH_PREFIX) != commonAppConfig.end()) { @@ -500,7 +495,6 @@ bool SandboxUtils::CheckAppSandboxSwitchStatus(const ClientSocket::AppProperty * { nlohmann::json wholeConfig = SandboxUtils::GetJsonConfig(); bool rc = true; - HiLog::Error(LABEL, "CheckAppSandboxSwitchStatus start, %{public}s", appProperty->bundleName); nlohmann::json privateAppConfig = wholeConfig[PRIVATE_PREFIX][0]; if (privateAppConfig.find(appProperty->bundleName) != privateAppConfig.end()) { @@ -532,10 +526,8 @@ int32_t SandboxUtils::SetAppSandboxProperty(const ClientSocket::AppProperty *app if (access(WARGNAR_DEVICE_PATH, F_OK) == 0 || (CheckTotalSandboxSwitchStatus(appProperty) == false) || (CheckAppSandboxSwitchStatus(appProperty) == false)) { rc = DoSandboxRootFolderCreateAdapt(sandboxPackagePath); - HiLog::Error(LABEL, "CheckAppSandboxSwitchStatus 1111, %{public}d", rc); } else { rc = DoSandboxRootFolderCreate(appProperty, sandboxPackagePath); - HiLog::Error(LABEL, "CheckAppSandboxSwitchStatus 2222, %{public}d", rc); } if (rc) { HiLog::Error(LABEL, "DoSandboxRootFolderCreate failed, %{public}s", bundleName.c_str()); -- Gitee