delete field

Signed-off-by: xuqian <xuqian65@huawei.com>
This commit is contained in:
xuqian 2024-08-23 11:25:42 +08:00
parent c8b3e5a839
commit 3365723200
4 changed files with 1 additions and 6 deletions

View File

@ -154,7 +154,6 @@ SandboxContext *GetSandboxContext(void)
context->bundleHasWps = 0;
context->dlpBundle = 0;
context->appFullMountEnable = 0;
context->dlpUiExtType = 0;
context->sandboxSwitch = 1;
context->sandboxShared = false;
context->message = NULL;
@ -188,7 +187,6 @@ static int InitSandboxContext(SandboxContext *context,
context->bundleHasWps = strstr(context->bundleName, "wps") != NULL;
context->dlpBundle = strcmp(GetProcessName(property), "com.ohos.dlpmanager") == 0;
context->appFullMountEnable = sandbox->appFullMountEnable;
context->dlpUiExtType = strstr(GetProcessName(property), "sys/commonUI") != NULL;
context->sandboxSwitch = 1;
context->sandboxShared = false;

View File

@ -215,7 +215,6 @@ typedef struct TagSandboxContext {
uint32_t sandboxShared : 1;
uint32_t bundleHasWps : 1;
uint32_t dlpBundle : 1;
uint32_t dlpUiExtType : 1;
uint32_t appFullMountEnable : 1;
uint32_t nwebspawn : 1;
uint32_t sandboxNsFlags;

View File

@ -82,9 +82,8 @@ static SandboxContext *TestGetSandboxContext(const AppSpawningCtx *property, int
context->nwebspawn = nwebspawn;
context->bundleName = GetBundleName(property);
context->bundleHasWps = strstr(context->bundleName, "wps") != nullptr;
context->dlpBundle = strstr(context->bundleName, "com.ohos.dlpmanager") != nullptr;
context->dlpBundle = strcmp(GetProcessName(property), "com.ohos.dlpmanager") == 0;
context->appFullMountEnable = 0;
context->dlpUiExtType = strstr(GetProcessName(property), "sys/commonUI") != nullptr;
context->sandboxSwitch = 1;
context->sandboxShared = false;

View File

@ -328,7 +328,6 @@ static SandboxContext *TestGetSandboxContext(const AppSpawningCtx *property, int
context->bundleHasWps = strstr(context->bundleName, "wps") != NULL;
context->dlpBundle = strcmp(GetProcessName(property), "com.ohos.dlpmanager") == 0;
context->appFullMountEnable = 0;
context->dlpUiExtType = strstr(GetProcessName(property), "sys/commonUI") != nullptr;
context->sandboxSwitch = 1;
context->sandboxShared = false;