Home
last modified time | relevance | path

Searched refs:destinationPath (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/base/startup/appspawn/test/mock/
H A Dapp_system_stub.c165 int MountStub(const char *originPath, const char *destinationPath, in MountStub() argument
175 printf("args->destinationPath %s == %s \n", args->destinationPath, destinationPath); in MountStub()
182 … int result = (destinationPath != NULL && (strcmp(destinationPath, args->destinationPath) == 0) && in MountStub()
/ohos5.0/base/startup/appspawn/modules/sandbox/
H A Dappspawn_sandbox.c97 errno, arg->originPath, arg->destinationPath); in SandboxMountPath()
100 ret = mount(NULL, arg->destinationPath, NULL, arg->mountSharedFlag, NULL); in SandboxMountPath()
103 errno, arg->originPath, arg->destinationPath); in SandboxMountPath()
286 umount2(args->destinationPath, MNT_DETACH); in SandboxMountFusePath()
304 CreateSandboxDir(args->destinationPath, FILE_MODE); in SandboxMountFusePath()
415 args.destinationPath = GetSandboxRealVar(context, in DoSandboxPathNodeMount()
418 APPSPAWN_CHECK(args.originPath != NULL && args.destinationPath != NULL, in DoSandboxPathNodeMount()
422 CheckAndCreateSandboxFile(args.destinationPath); in DoSandboxPathNodeMount()
424 CreateSandboxDir(args.destinationPath, FILE_MODE); in DoSandboxPathNodeMount()
429 APPSPAWN_LOGV("umount2 %{public}s", args.destinationPath); in DoSandboxPathNodeMount()
[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()
266 CheckAndCreatFile(destinationPath); in DoAppSandboxMountOnce()
268 MakeDirRecursive(destinationPath, FILE_MODE); in DoAppSandboxMountOnce()
276 originPath, destinationPath, fsType, mountFlags, options, mountSharedFlag); in DoAppSandboxMountOnce()
277 ret = mount(originPath, destinationPath, fsType, mountFlags, options); in DoAppSandboxMountOnce()
283 …I("errno is: %{public}d, bind mount %{public}s to %{public}s", errno, originPath, destinationPath); in DoAppSandboxMountOnce()
292 ret = mount(nullptr, destinationPath, nullptr, mountSharedFlag, nullptr); in DoAppSandboxMountOnce()
294 errno, destinationPath, mountSharedFlag); in DoAppSandboxMountOnce()
H A Dsandbox_utils.h55 static int32_t DoAppSandboxMountOnce(const char *originPath, const char *destinationPath,
H A Dappspawn_sandbox.h351 const char *destinationPath; member
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_sandbox_new_test.cpp1233 args.destinationPath = "/mnt/sandbox/100/com.example.myapplication/config";
1345 args.destinationPath = "/mnt/sandbox/100/app-root/mnt/data/fuse";
1563 args.destinationPath = "/mnt/sandbox/100/app-root/lib";
1616 args.destinationPath = "/mnt/sandbox/100/app-root/lib1";
1669 args.destinationPath = "/mnt/sandbox/100/app-root/storage/cloud/epfs";
1722 args.destinationPath = "/mnt/sandbox/100/app-root/mnt/data/fuse";
1774 args.destinationPath = "/mnt/sandbox/100/app-root/data/storage/el5";
1826 args.destinationPath = "/mnt/sandbox/100/app-root/data/storage/el6";
1877 args.destinationPath = "/mnt/sandbox/100/app-root/data/storage/e20";
1929 args.destinationPath = "/mnt/sandbox/100/app-root/data/storage/e15/base";
[all …]
H A Dapp_spawn_sandboxmgr_test.cpp584 arg.destinationPath = "/data/appspawn/test";