Lines Matching defs:srcPath
640 const std::string &srcPath, const std::string &sandboxPath,
667 srcPath.c_str(), sandboxPath.c_str(), fsType.c_str(), mountFlags, options);
668 ret = mount(srcPath.c_str(), sandboxPath.c_str(), fsType.c_str(), mountFlags, options);
671 srcPath.c_str(), sandboxPath.c_str(), errno);
686 const std::string &srcPath, const std::string &sandboxPath, const std::string &fsType, unsigned long mountFlags)
695 return DoDlpAppMountStrategy(appProperty, srcPath, sandboxPath, fsType, mountFlags);
808 std::string srcPath = ConvertToRealPath(appProperty, mntPoint[g_srcPath].get<std::string>());
816 int ret = HandleSpecialAppMount(appProperty, srcPath, sandboxPath, mountConfig.fsType, mountFlags);
818 ret = DoAppSandboxMountOnce(srcPath.c_str(), sandboxPath.c_str(), mountConfig.fsType.c_str(),
1462 std::string srcPath = hapPath.substr(0, pathIndex);
1463 if (mountedSrcSet.find(srcPath) != mountedSrcSet.end()) {
1464 APPSPAWN_LOGV("%{public}s have mounted before, no need to mount twice.", srcPath.c_str());
1468 auto bundleNameIndex = srcPath.find_last_of(g_fileSeparator);
1469 string destPath = sandboxOverlayPath + srcPath.substr(bundleNameIndex + 1, srcPath.length());
1470 int32_t retMount = DoAppSandboxMountOnce(srcPath.c_str(), destPath.c_str(),
1477 mountedSrcSet.emplace(srcPath);
1490 string srcPath = g_bundleResourceSrcPath;
1493 srcPath.c_str(), destPath.c_str(), nullptr, BASIC_MOUNT_FLAGS, nullptr);
1838 static void MountDir(const AppSpawningCtx *property, const char *rootPath, const char *srcPath, const char *targetPath)
1855 if (access(path, F_OK) == 0 && srcPath == nullptr) {
1861 const char *sourcePath = (srcPath == nullptr) ? path : srcPath;
1862 if (srcPath != nullptr) {