From af36e0c2d70beaeaf09484ad89de400de959cfbd Mon Sep 17 00:00:00 2001 From: Zheng Yongjun Date: Mon, 6 Jun 2022 10:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dlp=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E5=8C=85=E5=90=8D=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zheng Yongjun --- appdata-sandbox.json | 2 +- appdata-sandbox64.json | 2 +- util/src/sandbox_utils.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appdata-sandbox.json b/appdata-sandbox.json index 2a00511f..5994d20f 100644 --- a/appdata-sandbox.json +++ b/appdata-sandbox.json @@ -239,7 +239,7 @@ ], "symbol-links" : [] }], - "ohos.samples.dlp" : [{ + "com.ohos.dlpmanager" : [{ "sandbox-switch": "ON", "sandbox-root" : "/mnt/sandbox/", "mount-paths" : [{ diff --git a/appdata-sandbox64.json b/appdata-sandbox64.json index f2e76ab8..c3dca87a 100644 --- a/appdata-sandbox64.json +++ b/appdata-sandbox64.json @@ -244,7 +244,7 @@ ], "symbol-links" : [] }], - "ohos.samples.dlp" : [{ + "com.ohos.dlpmanager" : [{ "sandbox-switch": "ON", "sandbox-root" : "/mnt/sandbox/", "mount-paths" : [{ diff --git a/util/src/sandbox_utils.cpp b/util/src/sandbox_utils.cpp index 376d73ce..3b80bb01 100644 --- a/util/src/sandbox_utils.cpp +++ b/util/src/sandbox_utils.cpp @@ -54,6 +54,7 @@ namespace { const std::string SANDBOX_DIR = "/mnt/sandbox/"; const std::string STATUS_CHECK = "true"; const std::string SBX_SWITCH_CHECK = "ON"; + const std::string DLP_BUNDLENAME = "com.ohos.dlpmanager"; const char *ACTION_STATUS = "check-action-status"; const char *APP_BASE = "app-base"; const char *APP_RESOURCES = "app-resources"; @@ -336,7 +337,7 @@ static int32_t HandleSpecialAppMount(const ClientSocket::AppProperty *appPropert /* dlp application mount strategy */ /* dlp is an example, we should change to real bundle name later */ - if (bundleName.find("dlp") != -1) { + if (bundleName.find(DLP_BUNDLENAME) != -1) { if (fsType.empty()) { return -1; } else { -- Gitee