Lines Matching refs:section

206         context->sandboxShared = packageNode->section.sandboxShared;
222 context->sandboxShared = permissionNode->section.sandboxShared;
238 static VarExtraData *GetVarExtraData(const SandboxContext *context, const SandboxSection *section)
242 extraData.sandboxTag = GetSectionType(section);
243 if (GetSectionType(section) == SANDBOX_TAG_NAME_GROUP) {
244 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)section;
266 const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation)
269 APPSPAWN_LOGW("Invalid mount config section %{public}s", section->name);
278 APPSPAWN_LOGW("Invalid mount source %{public}s section %{public}s",
279 sandboxNode->source, section->name);
287 APPSPAWN_LOGW("Invalid mount app apl %{public}s %{public}s section %{public}s",
288 sandboxNode->appAplName, msgDomainInfo->apl, section->name);
437 const SandboxSection *section, const PathMountNode *sandboxNode, uint32_t operation)
439 if (CheckSandboxMountNode(context, section, sandboxNode, operation) == 0) {
445 VarExtraData *extraData = GetVarExtraData(context, section);
476 APPSPAWN_LOGE("Failed to mount config, section: %{public}s result: %{public}d category: %{public}d",
477 section->name, ret, category);
484 const SandboxSection *section, const SymbolLinkNode *sandboxNode)
488 APPSPAWN_LOGW("Invalid symlink config, section %{public}s", section->name);
514 static int DoSandboxNodeMount(const SandboxContext *context, const SandboxSection *section, uint32_t operation)
516 ListNode *node = section->front.next;
517 while (node != &section->front) {
523 ret = DoSandboxPathNodeMount(context, section, (PathMountNode *)sandboxNode, operation);
529 ret = DoSandboxPathSymLink(context, section, (SymbolLinkNode *)sandboxNode);
664 APPSPAWN_LOGE("Failed to get real path %{public}s ", groupNode->section.name);
672 APPSPAWN_LOGE("Failed to get real path %{public}s ", groupNode->section.name);
688 PathMountNode *mountNode = (PathMountNode *)GetFirstSandboxMountNode(&groupNode->section);
694 VarExtraData *extraData = GetVarExtraData(context, &groupNode->section);
710 const AppSpawnSandboxCfg *sandbox, const SandboxSection *section, uint32_t op)
713 SetMountPathOperation(&operation, section->sandboxNode.type);
719 int ret = DoSandboxNodeMount(context, section, operation);
723 if (section->nameGroups == NULL) {
727 for (uint32_t i = 0; i < section->number; i++) {
728 if (section->nameGroups[i] == NULL) {
731 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)section->nameGroups[i];
736 ret = DoSandboxNodeMount(context, &groupNode->section, operation);
738 "Mount name group %{public}s fail result: %{public}d", groupNode->section.name, ret);
775 int ret = MountSandboxConfig(context, sandbox, &sandboxNode->section, MOUNT_PATH_OP_NONE);
792 int ret = MountSandboxConfig(context, sandbox, &sandboxNode->section, MOUNT_PATH_OP_NONE);
811 permissionNode->permissionIndex, permissionNode->section.name);
812 int ret = MountSandboxConfig(context, sandbox, &permissionNode->section, MOUNT_PATH_OP_NONE);
981 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, name);
982 if (section == NULL) {
985 ListNode *node = section->front.next;
986 while (node != &section->front) {
1049 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "system-const");
1050 if (section != NULL) {
1051 ret = MountSandboxConfig(context, sandbox, section, operation);
1077 APPSPAWN_CHECK(ret == 0, return ret, "Failed to updata deps path name groups %{public}s", groupNode->section.name);
1086 ret = DoSandboxPathNodeMount(context, &groupNode->section, groupNode->depNode, operation);
1088 APPSPAWN_LOGE("Mount deps root fail %{public}s", groupNode->section.name);
1095 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "system-const");
1096 if (section == NULL || section->nameGroups == NULL) {
1101 for (uint32_t i = 0; i < section->number; i++) {
1102 if (section->nameGroups[i] == NULL) {
1105 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)section->nameGroups[i];
1114 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "app-variable");
1115 if (section == NULL || section->nameGroups == NULL) {
1120 for (uint32_t i = 0; i < section->number; i++) {
1121 if (section->nameGroups[i] == NULL) {
1124 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)section->nameGroups[i];
1143 if (sandboxNode->section.nameGroups == NULL) {
1148 for (uint32_t i = 0; i < sandboxNode->section.number; i++) {
1149 if (sandboxNode->section.nameGroups[i] == NULL) {
1152 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)sandboxNode->section.nameGroups[i];
1165 if (sandboxNode == NULL || sandboxNode->section.nameGroups == NULL) {
1170 for (uint32_t i = 0; i < sandboxNode->section.number; i++) {
1171 if (sandboxNode->section.nameGroups[i] == NULL) {
1174 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)sandboxNode->section.nameGroups[i];
1193 if (permissionNode->section.nameGroups == NULL) {
1198 for (uint32_t i = 0; i < permissionNode->section.number; i++) {
1199 if (permissionNode->section.nameGroups[i] == NULL) {
1202 SandboxNameGroupNode *groupNode = (SandboxNameGroupNode *)permissionNode->section.nameGroups[i];
1262 SandboxSection *section = GetSandboxSection(&sandbox->requiredQueue, "app-variable");
1263 if (section == NULL) {
1266 ret = MountSandboxConfig(context, sandbox, section, operation);