Lines Matching refs:section
194 context->sandboxShared = packageNode->section.sandboxShared; in InitSandboxContext()
216 static VarExtraData *GetVarExtraData(const SandboxContext *context, const SandboxSection *section) in GetVarExtraData() argument
220 extraData.sandboxTag = GetSectionType(section); in GetVarExtraData()
221 if (GetSectionType(section) == SANDBOX_TAG_NAME_GROUP) { in GetVarExtraData()
222 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)section; in GetVarExtraData()
250 const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation) in CheckSandboxMountNode() argument
253 APPSPAWN_LOGW("Invalid mount config section %{public}s", section->name); in CheckSandboxMountNode()
263 sandboxNode->source, section->name); in CheckSandboxMountNode()
272 sandboxNode->appAplName, msgDomainInfo->apl, section->name); in CheckSandboxMountNode()
398 const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation) in DoSandboxPathNodeMount() argument
400 if (CheckSandboxMountNode(context, section, sandboxNode, operation) == 0) { in DoSandboxPathNodeMount()
406 VarExtraData *extraData = GetVarExtraData(context, section); in DoSandboxPathNodeMount()
441 section->name, ret, category); in DoSandboxPathNodeMount()
448 const SandboxSection *section, const SymbolLinkNode *sandboxNode) in DoSandboxPathSymLink() argument
452 APPSPAWN_LOGW("Invalid symlink config, section %{public}s", section->name); in DoSandboxPathSymLink()
473 static int DoSandboxNodeMount(const SandboxContext *context, const SandboxSection *section, uint32_… in DoSandboxNodeMount() argument
475 ListNode *node = section->front.next; in DoSandboxNodeMount()
476 while (node != §ion->front) { in DoSandboxNodeMount()
482 … ret = DoSandboxPathNodeMount(context, section, (PathMountNode *)sandboxNode, operation); in DoSandboxNodeMount()
488 ret = DoSandboxPathSymLink(context, section, (SymbolLinkNode *)sandboxNode); in DoSandboxNodeMount()
507 APPSPAWN_LOGE("Failed to get real path %{public}s ", groupNode->section.name); in UpdateMountPathDepsPath()
515 APPSPAWN_LOGE("Failed to get real path %{public}s ", groupNode->section.name); in UpdateMountPathDepsPath()
531 PathMountNode *mountNode = (PathMountNode *)GetFirstSandboxMountNode(&groupNode->section); in CheckAndCreateDepPath()
537 VarExtraData *extraData = GetVarExtraData(context, &groupNode->section); in CheckAndCreateDepPath()
553 const AppSpawnSandboxCfg *sandbox, const SandboxSection *section, uint32_t op) in MountSandboxConfig() argument
556 SetMountPathOperation(&operation, section->sandboxNode.type); in MountSandboxConfig()
562 int ret = DoSandboxNodeMount(context, section, operation); in MountSandboxConfig()
566 if (section->nameGroups == NULL) { in MountSandboxConfig()
570 for (uint32_t i = 0; i < section->number; i++) { in MountSandboxConfig()
571 if (section->nameGroups[i] == NULL) { in MountSandboxConfig()
574 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)section->nameGroups[i]; in MountSandboxConfig()
576 ret = DoSandboxNodeMount(context, &groupNode->section, operation); in MountSandboxConfig()
578 "Mount name group %{public}s fail result: %{public}d", groupNode->section.name, ret); in MountSandboxConfig()
615 int ret = MountSandboxConfig(context, sandbox, &sandboxNode->section, MOUNT_PATH_OP_NONE); in SetSandboxPackageNameConfig()
632 int ret = MountSandboxConfig(context, sandbox, &sandboxNode->section, MOUNT_PATH_OP_NONE); in SetSandboxSpawnFlagsConfig()
651 permissionNode->permissionIndex, permissionNode->section.name); in SetSandboxPermissionConfig()
652 … int ret = MountSandboxConfig(context, sandbox, &permissionNode->section, MOUNT_PATH_OP_NONE); in SetSandboxPermissionConfig()
821 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, name); in UnmountSandboxConfigs() local
822 if (section == NULL) { in UnmountSandboxConfigs()
825 ListNode *node = section->front.next; in UnmountSandboxConfigs()
826 while (node != §ion->front) { in UnmountSandboxConfigs()
875 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "system-const"); in StagedMountSystemConst() local
876 if (section != NULL) { in StagedMountSystemConst()
877 ret = MountSandboxConfig(context, sandbox, section, operation); in StagedMountSystemConst()
908 APPSPAWN_LOGV("Set sandbox deps config %{public}s ", groupNode->section.name); in StagedMountPreUnShare()
912 "Failed to update deps path name group %{public}s", groupNode->section.name); in StagedMountPreUnShare()
921 ret = DoSandboxPathNodeMount(context, &groupNode->section, groupNode->depNode, operation); in StagedMountPreUnShare()
923 APPSPAWN_LOGE("Mount deps root fail %{public}s", groupNode->section.name); in StagedMountPreUnShare()
949 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "app-variable"); in SetAppVariableConfig() local
950 if (section == NULL) { in SetAppVariableConfig()
953 ret = MountSandboxConfig(context, sandbox, section, operation); in SetAppVariableConfig()