/ohos5.0/base/startup/appspawn/modules/sandbox/ |
H A D | appspawn_sandbox.c | 93 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 D | sandbox_utils.cpp | 258 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 D | sandbox_utils.h | 55 static int32_t DoAppSandboxMountOnce(const char *originPath, const char *destinationPath,
|
H A D | appspawn_sandbox.h | 350 const char *originPath; member
|
/ohos5.0/base/startup/appspawn/test/mock/ |
H A D | app_system_stub.c | 165 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 D | nativeapi_kv_impl.c | 59 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 D | nativeapi_fs_impl.c | 45 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 D | app_spawn_sandbox_new_test.cpp | 1232 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 D | app_spawn_sandboxmgr_test.cpp | 583 arg.originPath = "/data/";
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | installd_client.cpp | 483 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 D | mock_install_client.cpp | 315 ErrCode InstalldClient::MoveHapToCodeDir(const std::string &originPath, const std::string &targetPa… in MoveHapToCodeDir() argument
|
H A D | mock_installd_host_impl.cpp | 311 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 D | installd_client.cpp | 580 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 D | fs_work_agent.c | 491 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 D | multistages_photo_capture_manager.cpp | 265 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 D | installd_client.h | 241 ErrCode MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath);
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ipc/ |
H A D | installd_interface.h | 426 virtual ErrCode MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) in MoveHapToCodeDir() argument
|
H A D | installd_proxy.h | 234 …virtual ErrCode MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) ove…
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/installd/ |
H A D | installd_operator.h | 230 static bool ScanSoFiles(const std::string &newSoPath, const std::string &originPath,
|
H A D | installd_host_impl.h | 236 …virtual ErrCode MoveHapToCodeDir(const std::string &originPath, const std::string &targetPath) ove…
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ipc/ |
H A D | installd_host.cpp | 920 std::string originPath = Str16ToStr8(data.ReadString16()); in HandleMoveHapToCodeDir() local 923 ErrCode result = MoveHapToCodeDir(originPath, targetPath); in HandleMoveHapToCodeDir()
|
H A D | installd_proxy.cpp | 922 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 D | installd_host_impl.cpp | 1927 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 D | installd_operator.cpp | 1195 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 D | file_n_exporter.cpp | 244 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()
|