Lines Matching refs:sandboxNode

197 static void FillPathDemandInfo(const cJSON *config, PathMountNode *sandboxNode)  in FillPathDemandInfo()  argument
200 sandboxNode->demandInfo->uid = GetIntValueFromJsonObj(config, "uid", -1); in FillPathDemandInfo()
201 sandboxNode->demandInfo->gid = GetIntValueFromJsonObj(config, "gid", -1); in FillPathDemandInfo()
202 sandboxNode->demandInfo->mode = GetIntValueFromJsonObj(config, "ugo", -1); in FillPathDemandInfo()
219 PathMountNode *sandboxNode = CreatePathMountNode(type, demandInfo != NULL); in DecodeMountPathConfig() local
220 APPSPAWN_CHECK_ONLY_EXPER(sandboxNode != NULL, return NULL); in DecodeMountPathConfig()
221 sandboxNode->createDemand = demandInfo != NULL; in DecodeMountPathConfig()
222 sandboxNode->source = strdup(srcPath); in DecodeMountPathConfig()
223 sandboxNode->target = strdup(dstPath); in DecodeMountPathConfig()
225 sandboxNode->destMode = GetChmodFromJson(config); in DecodeMountPathConfig()
226 sandboxNode->mountSharedFlag = GetBoolValueFromJsonObj(config, "mount-shared-flag", false); in DecodeMountPathConfig()
227 sandboxNode->checkErrorFlag = GetBoolValueFromJsonObj(config, "check-action-status", false); in DecodeMountPathConfig()
229 sandboxNode->category = GetMountCategory(GetStringFromJsonObj(config, "category")); in DecodeMountPathConfig()
232 sandboxNode->appAplName = strdup(value); in DecodeMountPathConfig()
234 FillPathDemandInfo(demandInfo, sandboxNode); in DecodeMountPathConfig()
236 if (sandboxNode->source == NULL || sandboxNode->target == NULL) { in DecodeMountPathConfig()
238 DeleteSandboxMountNode((SandboxMountNode *)sandboxNode); in DecodeMountPathConfig()
241 return sandboxNode; in DecodeMountPathConfig()
255 PathMountNode *sandboxNode = DecodeMountPathConfig(section, mntJson, type); in ParseMountPathsConfig() local
256 APPSPAWN_CHECK_ONLY_EXPER(sandboxNode != NULL, continue); in ParseMountPathsConfig()
257 AddSandboxMountNode(&sandboxNode->sandboxNode, section); in ParseMountPathsConfig()
301 AddSandboxMountNode(&node->sandboxNode, section); in ParseSymbolLinksConfig()