Home
last modified time | relevance | path

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

/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()
/base/startup/appspawn/modules/sandbox/
H A Dappspawn_sandbox.c96 APPSPAWN_CHECK(arg != NULL && arg->originPath != NULL && arg->destinationPath != NULL, in SandboxMountPath()
101 (uint32_t)arg->mountFlags, arg->options, arg->originPath, arg->destinationPath); in SandboxMountPath()
103 int ret = mount(arg->originPath, arg->destinationPath, arg->fsType, arg->mountFlags, arg->options); in SandboxMountPath()
109 errno, arg->originPath, arg->destinationPath); in SandboxMountPath()
112 ret = mount(NULL, arg->destinationPath, NULL, arg->mountSharedFlag, NULL); in SandboxMountPath()
115 errno, arg->originPath, arg->destinationPath); in SandboxMountPath()
302 umount2(args->destinationPath, MNT_DETACH); in SandboxMountFusePath()
306 "open /dev/fuse failed, errno: %{public}d sandbox path %{public}s", errno, args->destinationPath); in SandboxMountFusePath()
318 (uint32_t)args->mountFlags, options, args->originPath, args->destinationPath); in SandboxMountFusePath()
320 // To make sure destinationPath exis in SandboxMountFusePath()
[all...]
H A Dsandbox_utils.h55 static int32_t DoAppSandboxMountOnce(const char *originPath, const char *destinationPath,
H A Dsandbox_utils.cpp258 int32_t SandboxUtils::DoAppSandboxMountOnce(const char *originPath, const char *destinationPath, in DoAppSandboxMountOnce() argument
263 CheckAndCreatFile(destinationPath); in DoAppSandboxMountOnce()
265 MakeDirRecursive(destinationPath, FILE_MODE); in DoAppSandboxMountOnce()
273 originPath, destinationPath, fsType, mountFlags, options, mountSharedFlag); in DoAppSandboxMountOnce()
274 ret = mount(originPath, destinationPath, fsType, mountFlags, options); in DoAppSandboxMountOnce()
280 APPSPAWN_LOGI("errno is: %{public}d, bind mount %{public}s to %{public}s", errno, originPath, destinationPath); in DoAppSandboxMountOnce()
289 ret = mount(nullptr, destinationPath, nullptr, mountSharedFlag, nullptr); in DoAppSandboxMountOnce()
291 errno, destinationPath, mountSharedFlag); in DoAppSandboxMountOnce()
661 // To make sure destinationPath exist in DoDlpAppMountStrategy()
H A Dappspawn_sandbox.h367 const char *destinationPath; member
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_sandbox_new_test.cpp1183 args.destinationPath = "/mnt/sandbox/100/app-root/storage/Users/100/appdata/el1"; in HWTEST_F()
1236 args.destinationPath = "/mnt/sandbox/100/com.example.myapplication/config"; in HWTEST_F()
1294 args.destinationPath = "/mnt/sandbox/100/com.example.myapplication/config"; in HWTEST_F()
1348 args.destinationPath = "/mnt/sandbox/100/app-root/mnt/data/fuse"; in HWTEST_F()
1400 args.destinationPath = "/home/axw/appspawn_ut/mnt/sandbox/100/com.example.myapplication/mnt/data/fuse"; in HWTEST_F()
1455 args.destinationPath = "/mnt/sandbox/100/app-root/data/app/el1/currentUser/" in HWTEST_F()
1513 args.destinationPath = "/mnt/sandbox/100/app-root/data/app/el1/currentUser/" in HWTEST_F()
1566 args.destinationPath = "/mnt/sandbox/100/app-root/lib"; in HWTEST_F()
1619 args.destinationPath = "/mnt/sandbox/100/app-root/lib1"; in HWTEST_F()
1672 args.destinationPath in HWTEST_F()
[all...]
H A Dapp_spawn_sandboxmgr_test.cpp584 arg.destinationPath = "/data/appspawn/test"; in HWTEST_F()

Completed in 12 milliseconds