Lines Matching defs:tmpMount
237 mountlist_t *tmpMount = (mountlist_t *)calloc(1, sizeof(mountlist_t));
238 BEGET_ERROR_CHECK(tmpMount != NULL, return -1, "Failed calloc err=%d", errno);
239 tmpMount->source = strdup(srcPath);
240 BEGET_ERROR_CHECK(tmpMount->source != NULL, free(tmpMount); return -1, "Failed to dup source");
241 tmpMount->target = strdup(dstPath);
242 BEGET_ERROR_CHECK(tmpMount->target != NULL, free(tmpMount); return -1, "Failed to dup target");
245 tmpMount->flags |= GetSandboxMountFlags(item);
247 tmpMount->ignoreErrors = false;
251 tmpMount->ignoreErrors = true;
254 OH_ListInit(&tmpMount->node);
256 tmpMount->tag = SANDBOX_TAG_MOUNT_PATH;
258 OH_ListAddTail(&sandbox->pathMountsHead, &tmpMount->node);
260 tmpMount->tag = SANDBOX_TAG_MOUNT_FILE;
262 OH_ListAddTail(&sandbox->fileMountsHead, &tmpMount->node);