Home
last modified time | relevance | path

Searched refs:originPath (Results 1 – 25 of 26) sorted by relevance

12

/ohos5.0/base/startup/appspawn/modules/sandbox/
H A Dappspawn_sandbox.c93 if (arg->originPath != NULL && strstr(arg->originPath, "/data/app/el2/") != NULL) { in SandboxMountPath()
94 CheckDirRecursive(arg->originPath); in SandboxMountPath()
340 CheckAndCreateSandboxFile(args->originPath); in CreateDemandSrc()
365 if (originPath == NULL) { in GetRealSrcPath()
369 return originPath; in GetRealSrcPath()
372 !CheckDirRecursive(originPath)) { in GetRealSrcPath()
373 return originPath; in GetRealSrcPath()
379 return originPath; in GetRealSrcPath()
388 if (originPath == NULL) { in GetRealSrcPath()
391 MakeDirRec(originPath, FILE_MODE, 0); in GetRealSrcPath()
[all …]
H A Dsandbox_utils.cpp258 int32_t SandboxUtils::DoAppSandboxMountOnce(const char *originPath, const char *destinationPath, in DoAppSandboxMountOnce() argument
262 …if (originPath == nullptr || destinationPath == nullptr || originPath[0] == '\0' || destinationPat… in DoAppSandboxMountOnce()
265 if (strstr(originPath, "system/etc/hosts") != nullptr) { in DoAppSandboxMountOnce()
276 originPath, destinationPath, fsType, mountFlags, options, mountSharedFlag); in DoAppSandboxMountOnce()
277 ret = mount(originPath, destinationPath, fsType, mountFlags, options); in DoAppSandboxMountOnce()
281 …_ONLY_LOG(diff < MAX_MOUNT_TIME, "mount %{public}s time %{public}" PRId64 " us", originPath, diff); in DoAppSandboxMountOnce()
283 …GI("errno is: %{public}d, bind mount %{public}s to %{public}s", errno, originPath, destinationPath… in DoAppSandboxMountOnce()
284 std::string originPathStr = originPath == nullptr ? "" : originPath; in DoAppSandboxMountOnce()
H A Dsandbox_utils.h55 static int32_t DoAppSandboxMountOnce(const char *originPath, const char *destinationPath,
H A Dappspawn_sandbox.h350 const char *originPath; member
/ohos5.0/base/startup/appspawn/test/mock/
H A Dapp_system_stub.c165 int MountStub(const char *originPath, const char *destinationPath, in MountStub() argument
174 printf("args->originPath %s == %s \n", args->originPath, originPath); in MountStub()
181 if (originPath != NULL && (strcmp(originPath, args->originPath) == 0)) { in MountStub()
/ohos5.0/commonlibrary/utils_lite/js/builtin/kvstorekit/src/
H A Dnativeapi_kv_impl.c59 static int GetRealPath(const char* originPath, char* trustPath, size_t tPathLen) in GetRealPath() argument
62 if (PathCanonicalize(trustPath, originPath)) { in GetRealPath()
66 if (realpath(originPath, trustPath) != NULL) { in GetRealPath()
72 if (strncpy_s(trustPath, tPathLen, originPath, strlen(originPath)) == EOK) { in GetRealPath()
/ohos5.0/commonlibrary/utils_lite/js/builtin/filekit/src/
H A Dnativeapi_fs_impl.c45 static int GetRealPath(const char* originPath, char* trustPath, size_t tPathLen) in GetRealPath() argument
48 if (PathCanonicalize(trustPath, originPath)) { in GetRealPath()
52 if (realpath(originPath, trustPath) != NULL) { in GetRealPath()
58 if (strncpy_s(trustPath, tPathLen, originPath, strlen(originPath)) == EOK) { in GetRealPath()
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_sandbox_new_test.cpp1232 args.originPath = "/config";
1290 args.originPath = "/config";
1344 args.originPath = "/dev/fuse";
1396 args.originPath = "/dev/fuse";
1451 args.originPath = "/config--1";
1509 args.originPath = "/config--1";
1562 args.originPath = "/lib";
1615 args.originPath = "/lib1";
1668 args.originPath = "none";
1721 args.originPath = "/dev/fuse";
[all …]
H A Dapp_spawn_sandboxmgr_test.cpp583 arg.originPath = "/data/";
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/
H A Dinstalld_client.cpp483 ErrCode InstalldClient::MoveHapToCodeDir(const std::string &originPath, const std::string &targetPa… in MoveHapToCodeDir() argument
485 if (originPath.empty() || targetPath.empty()) { in MoveHapToCodeDir()
490 return CallService(&IInstalld::MoveHapToCodeDir, originPath, targetPath); in MoveHapToCodeDir()
H A Dmock_install_client.cpp315 ErrCode InstalldClient::MoveHapToCodeDir(const std::string &originPath, const std::string &targetPa… in MoveHapToCodeDir() argument
H A Dmock_installd_host_impl.cpp311 ErrCode InstalldHostImpl::MoveHapToCodeDir(const std::string &originPath, const std::string &target… in MoveHapToCodeDir() argument
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dinstalld_client.cpp580 ErrCode InstalldClient::MoveHapToCodeDir(const std::string &originPath, const std::string &targetPa… in MoveHapToCodeDir() argument
582 if (originPath.empty() || targetPath.empty()) { in MoveHapToCodeDir()
587 return CallService(&IInstalld::MoveHapToCodeDir, originPath, targetPath); in MoveHapToCodeDir()
/ohos5.0/base/tee/tee_client/services/teecd/src/
H A Dfs_work_agent.c491 static uint32_t GetRealFilePath(const char *originPath, char *trustPath, size_t tPathLen) in GetRealFilePath() argument
493 char *retPath = realpath(originPath, trustPath); in GetRealFilePath()
501 if (!IsValidFilePath(originPath)) { in GetRealFilePath()
505 errno_t rc = strncpy_s(trustPath, tPathLen, originPath, strlen(originPath)); in GetRealFilePath()
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_multistages_capture/src/
H A Dmultistages_photo_capture_manager.cpp265 string originPath = MediaLibraryAssetOperations::GetEditDataSourcePath(path); in UpdateLocation() local
266 if (MediaFileUtils::IsFileExists(originPath)) { in UpdateLocation()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dinstalld_client.h241 ErrCode MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ipc/
H A Dinstalld_interface.h426 virtual ErrCode MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) in MoveHapToCodeDir() argument
H A Dinstalld_proxy.h234 …virtual ErrCode MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) ove…
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/installd/
H A Dinstalld_operator.h230 static bool ScanSoFiles(const std::string &newSoPath, const std::string &originPath,
H A Dinstalld_host_impl.h236 …virtual ErrCode MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) ove…
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ipc/
H A Dinstalld_host.cpp920 std::string originPath = Str16ToStr8(data.ReadString16()); in HandleMoveHapToCodeDir() local
923 ErrCode result = MoveHapToCodeDir(originPath, targetPath); in HandleMoveHapToCodeDir()
H A Dinstalld_proxy.cpp922 ErrCode InstalldProxy::MoveHapToCodeDir(const std::string &originPath, const std::string &targetPat… in MoveHapToCodeDir() argument
926 INSTALLD_PARCEL_WRITE(data, String16, Str8ToStr16(originPath)); in MoveHapToCodeDir()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/
H A Dinstalld_host_impl.cpp1927 ErrCode InstalldHostImpl::MoveHapToCodeDir(const std::string &originPath, const std::string &target… in MoveHapToCodeDir() argument
1933 if (!InstalldOperator::MoveFile(originPath, targetPath)) { in MoveHapToCodeDir()
1935 originPath.c_str(), targetPath.c_str(), errno); in MoveHapToCodeDir()
H A Dinstalld_operator.cpp1195 bool InstalldOperator::ScanSoFiles(const std::string &newSoPath, const std::string &originPath, in ScanSoFiles() argument
1222 if (!ScanSoFiles(newSoPath, originPath, currentDir, paths)) { in ScanSoFiles()
1229 std::string prefixPath = originPath; in ScanSoFiles()
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/class_file/
H A Dfile_n_exporter.cpp244 string ConvertUri(string path, string originPath, string originUri) in ConvertUri() argument
246 if (path.find(originPath) != path.npos) { in ConvertUri()
250 path.replace(0, originPath.length(), originUri); in ConvertUri()

12