/ohos5.0/base/startup/appspawn/modules/sandbox/ |
H A D | appspawn_sandbox.c | 116 char *rootPath = strstr(sandbox->rootPath, PARAMETER_USER_ID); in BuildRootPath() local 117 if (rootPath == NULL) { in BuildRootPath() 120 ret = memcpy_s(buffer, bufferLen, sandbox->rootPath, rootPath - sandbox->rootPath); in BuildRootPath() 122 currLen = rootPath - sandbox->rootPath; in BuildRootPath() 158 context->rootPath = NULL; in GetSandboxContext() 167 if (context->rootPath) { in DeleteSandboxContext() 168 free(context->rootPath); in DeleteSandboxContext() 169 context->rootPath = NULL; in DeleteSandboxContext() 206 if (rootPath) { in InitSandboxContext() 207 context->rootPath = strdup(rootPath); in InitSandboxContext() [all …]
|
H A D | sandbox_utils.cpp | 1821 const char rootPath[] = "/data/app/el2/"; in IsUnlockStatus() local 1937 static int SharedMountInSharefs(const AppSpawningCtx *property, const char *rootPath, in SharedMountInSharefs() argument 1985 const char rootPath[] = "/mnt/sandbox"; in UpdateStorageDir() local 2023 ret = MountInShared(property, rootPath, nosharefsDocsDir, userPath); in UpdateStorageDir() 2032 const char rootPath[] = "/mnt/sandbox/"; in MountDirToShared() local 2044 MountDir(property, rootPath, sourcePath.c_str(), el1Path); in MountDirToShared() 2054 MountDir(property, rootPath, nullptr, MOUNT_SHARED_MAP[i].sandboxPath); in MountDirToShared() 2059 MountDir(property, rootPath, nullptr, MOUNT_SHARED_MAP[i].sandboxPath); in MountDirToShared() 2064 std::string lockSbxPathStamp = rootPath + to_string(info->uid / UID_BASE) + "/"; in MountDirToShared() 2106 const char rootPath[] = "/mnt/sandbox/"; in UmountSandboxPath() local [all …]
|
H A D | sandbox_load.c | 589 char *rootPath = GetStringFromJsonObj(json, "sandbox-root"); in ParseGlobalSandboxConfig() local 590 APPSPAWN_CHECK(rootPath != NULL, return APPSPAWN_SYSTEM_ERROR, "No root path in config"); in ParseGlobalSandboxConfig() 591 if (sandbox->rootPath) { in ParseGlobalSandboxConfig() 592 free(sandbox->rootPath); in ParseGlobalSandboxConfig() 594 sandbox->rootPath = strdup(rootPath); in ParseGlobalSandboxConfig() 595 …APPSPAWN_CHECK(sandbox->rootPath != NULL, return APPSPAWN_SYSTEM_ERROR, "Failed to copy root path"… in ParseGlobalSandboxConfig()
|
H A D | sandbox_expand.c | 65 context->rootPath, SANDBOX_INSTALL_PATH, libBundleName, libModuleName); in MountAllHsp() 112 context->rootPath, SANDBOX_GROUP_PATH, dataGroupUuid); in MountAllGroup() 160 sandboxContext->rootPath, SANDBOX_OVERLAY_PATH); in SetOverlayAppPath()
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_ext/ |
H A D | untar_file_sup_test.cpp | 135 string rootPath = ""; variable 139 rootPath = "rootPath"; 145 rootPath = "/rootPath/"; 163 string rootPath = "rootPath/realName"; variable 190 string rootPath = ""; variable 192 UntarFile::GetInstance().CreateDir(rootPath, S_IRWXU); 193 rootPath = "rootPath/realName"; 195 UntarFile::GetInstance().CreateDir(rootPath, S_IRWXU); 197 rootPath = "rootPath/realName"; 201 UntarFile::GetInstance().CreateDir(rootPath, S_IRWXU); [all …]
|
H A D | untar_file_test.cpp | 110 string rootPath(""); variable 149 string rootPath(root); 188 string rootPath(root); 227 string rootPath(root); 281 string rootPath(root); 335 string rootPath(root); 338 UntarFile::GetInstance().IncrementalUnPacket(tarFile, rootPath, cloudFiles); 366 string rootPath(root); 369 UntarFile::GetInstance().IncrementalUnPacket(tarFile, rootPath, cloudFiles); 412 string rootPath(root); [all …]
|
/ohos5.0/base/startup/init/services/sandbox/ |
H A D | sandbox.c | 320 if (sandbox->rootPath == NULL) { in ParseSandboxConfig() 469 if (sandbox->rootPath == NULL) { in IsValidSandbox() 481 const char *rootPath = (const char *)data; in MountSandboxNode() local 510 const char *rootPath = (const char *)data; in LinkSandboxNode() local 547 …EGET_ERROR_CHECK(CheckAndMakeDir(sandbox->rootPath, mode) == 0, return -1, "Failed root %s.", sand… in PrepareSandbox() 550 rc = BindMount(sandbox->rootPath, sandbox->rootPath, MS_BIND | MS_REC, SANDBOX_TAG_MOUNT_PATH); in PrepareSandbox() 564 …BEGET_ERROR_CHECK(chdir(sandbox->rootPath) == 0, return -1, "Change to %s, err = %d", sandbox->roo… in PrepareSandbox() 565 BEGET_ERROR_CHECK(syscall(SYS_pivot_root, sandbox->rootPath, sandbox->rootPath) == 0, return -1, in PrepareSandbox() 606 if (sandbox->rootPath != NULL) { in DestroySandbox() 607 free(sandbox->rootPath); in DestroySandbox() [all …]
|
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_storage.c | 28 int32_t GetRootPath(uint32_t store, char *rootPath, uint32_t pathLen) in GetRootPath() argument 35 ret = memcpy_s(rootPath, pathLen - 1, CREDNTIAL_STORE, strlen(CREDNTIAL_STORE)); in GetRootPath() 38 ret = memcpy_s(rootPath, pathLen - 1, SYSTEM_CA_STORE, strlen(SYSTEM_CA_STORE)); in GetRootPath() 41 ret = memcpy_s(rootPath, pathLen - 1, USER_CA_STORE, strlen(USER_CA_STORE)); in GetRootPath() 64 char rootPath[CERT_MAX_PATH_LEN] = { 0 }; in ConstructUserIdPath() local 65 int32_t ret = GetRootPath(store, rootPath, CERT_MAX_PATH_LEN); in ConstructUserIdPath() 70 if (snprintf_s(userIdPath, pathLen, pathLen - 1, "%s%u", rootPath, context->userId) < 0) { in ConstructUserIdPath() 252 char rootPath[CERT_MAX_PATH_LEN] = { 0 }; in CmGetCertConfUserIdDir() local 253 ret = GetCertConfRootDir(rootPath, CERT_MAX_PATH_LEN); in CmGetCertConfUserIdDir() 382 char rootPath[CERT_MAX_PATH_LEN] = { 0 }; in CmGetCertBackupDir() local [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/include/ |
H A D | untar_file.h | 43 const std::string &tarFile, const std::string &rootPath); 45 const std::string &tarFile, const std::string &rootPath, 59 std::tuple<int, EndFileInfo, ErrFileInfo> ParseTarFile(const std::string &rootPath); 66 std::tuple<int, EndFileInfo, ErrFileInfo> ParseIncrementalTarFile(const std::string &rootPath); 88 std::string GenRealPath(const std::string &rootPath, const std::string &pathName);
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | application_cleaner.cpp | 128 int ApplicationCleaner::GetRootPath(std::vector<std::string> &rootPath) in GetRootPath() argument 146 rootPath.clear(); in GetRootPath() 154 rootPath.emplace_back(baseDir); in GetRootPath() 160 rootPath.emplace_back(moudleDir); in GetRootPath() 166 const std::vector<std::string> &rootPath, std::vector<std::string> &tempPath) in GetObsoleteBundleTempPath() argument 168 if (rootPath.empty()) { in GetObsoleteBundleTempPath() 173 for (const auto &dir : rootPath) { in GetObsoleteBundleTempPath()
|
/ohos5.0/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
H A D | untar_file.cpp | 119 const std::string &tarFile, const std::string &rootPath) in UnPacket() argument 127 auto [ret, fileInfos, errInfos] = ParseTarFile(rootPath); in UnPacket() 139 …const string &tarFile, const string &rootPath, const unordered_map<string, struct ReportFileInfo> … in IncrementalUnPacket() argument 148 auto [ret, fileInfos, errFileInfos] = ParseIncrementalTarFile(rootPath); in IncrementalUnPacket() 246 std::tuple<int, EndFileInfo, ErrFileInfo> UntarFile::ParseTarFile(const string &rootPath) in ParseTarFile() argument 249 rootPath_ = rootPath; in ParseTarFile() 296 std::tuple<int, EndFileInfo, ErrFileInfo> UntarFile::ParseIncrementalTarFile(const string &rootPath) in ParseIncrementalTarFile() argument 299 rootPath_ = rootPath; in ParseIncrementalTarFile() 524 string UntarFile::GenRealPath(const string &rootPath, const string &realName) in GenRealPath() argument 526 if (rootPath.empty() || realName.empty()) { in GenRealPath() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | filesystem_api.cpp | 184 auto rootPath = ResolvePath(rootPathIn); in CreateStdFileSystem() local 185 if (!rootPath.empty()) { in CreateStdFileSystem() 186 auto entry = rootFs_->GetEntry(rootPath); in CreateStdFileSystem() 188 return IFilesystem::Ptr(new StdFilesystem(rootPath)); in CreateStdFileSystem()
|
/ohos5.0/base/update/updateservice/services/core/ability/utils/src/ |
H A D | file_utils.cpp | 84 void FileUtils::DeleteFile(const std::string &rootPath, bool isDeleteRootDir) in DeleteFile() argument 86 if (!IsFileExist(rootPath)) { in DeleteFile() 87 ENGINE_LOGE("dir[%{public}s] is not exist", rootPath.c_str()); in DeleteFile() 91 auto myPath = std::filesystem::path(rootPath); in DeleteFile()
|
/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/util/ |
H A D | options.cpp | 353 std::string rootPath = ""; in GetPackagePath() local 358 rootPath = packageRoot.second; in GetPackagePath() 368 if (StringHelper::EndWith(rootPath, SEPARATOR)) { in GetPackagePath() 369 rootPath.pop_back(); in GetPackagePath() 373 return File::AdapterPath(rootPath + "/" + subPath); in GetPackagePath()
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/file/ |
H A D | audio_capturer_file_source.cpp | 137 std::string rootPath; in Init() local 142 rootPath = sourceFilePath.substr(0, pos); in Init() 146 …bool tmp = strlen(sourceFilePath.c_str()) >= PATH_MAX || realpath(rootPath.c_str(), realPath) == n… in Init()
|
/ohos5.0/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/process_group/src/ |
H A D | cgroup_map.cpp | 99 std::string rootPath = cgroupObj[JSON_KEY_PATH].get<std::string>(); in LoadConfigFromJsonObj() local 100 if (name.empty() || rootPath.empty()) { in LoadConfigFromJsonObj() 105 CgroupController controller(name, rootPath); in LoadConfigFromJsonObj()
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/ |
H A D | application_cleaner.h | 41 int GetRootPath(std::vector<std::string> &rootPath); 42 …int GetObsoleteBundleTempPath(const std::vector<std::string> &rootPath, std::vector<std::string> &…
|
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/file/ |
H A D | audio_renderer_file_sink.cpp | 144 std::string rootPath; in Start() local 149 rootPath = filePath_.substr(0, pos); in Start() 154 …CHECK_AND_RETURN_RET_LOG((filePath_.length() < PATH_MAX) && (realpath(rootPath.c_str(), realPath) … in Start()
|
/ohos5.0/docs/zh-cn/application-dev/media/media/ |
H A D | avmetadataextractor.md | 48 rootPath: string = getContext(this).getApplicationContext().filesDir; 157 avMetadataExtractor.fdSrc = fs.openSync(this.rootPath + this.testFilename); 177 let fd: number = fs.openSync(this.rootPath + this.testFilename).fd; 178 let fileSize: number = fs.statSync(this.rootPath + this.testFilename).size;
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | application_cleaner_test.cpp | 104 std::vector<std::string> rootPath {path}; variable 106 int res = cleaner->GetObsoleteBundleTempPath(rootPath, tempPath);
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | options.cpp | 743 std::string rootPath = ""; in GetPackagePath() local 748 rootPath = packageRoot.second; in GetPackagePath() 758 if (StringHelper::EndWith(rootPath, SEPARATOR)) { in GetPackagePath() 759 rootPath.pop_back(); in GetPackagePath() 763 return File::AdapterPath(rootPath + "/" + subPath); in GetPackagePath()
|
/ohos5.0/base/startup/init/services/sandbox/include/ |
H A D | sandbox.h | 51 char *rootPath; // /mnt/sandbox/system|vendor|xxx member
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/io/ |
H A D | intf_filesystem_api.h | 45 virtual IFilesystem::Ptr CreateStdFileSystem(BASE_NS::string_view rootPath) = 0; in CORE_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/distributeddatamgr/udmf/interfaces/innerkits/data/ |
H A D | unified_data_helper.h | 26 static void SetRootPath(const std::string &rootPath);
|
/ohos5.0/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/ |
H A D | unified_data_helper.cpp | 39 void UnifiedDataHelper::SetRootPath(const std::string &rootPath) in SetRootPath() argument 41 rootPath_ = rootPath; in SetRootPath()
|