Home
last modified time | relevance | path

Searched refs:userIdPath (Results 1 - 17 of 17) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/storage/src/
H A Dhks_storage_manager_test.cpp119 ASSERT_EQ(strlen("1"), strlen(material.userIdPath)) << "userId path is " << material.userIdPath; in HWTEST_F()
120 ASSERT_EQ(EOK, HksMemCmp("1", material.userIdPath, strlen(material.userIdPath))); in HWTEST_F()
170 ASSERT_EQ(strlen("2"), strlen(material.userIdPath)) << "userId path is " << material.userIdPath; in HWTEST_F()
171 ASSERT_EQ(EOK, HksMemCmp("2", material.userIdPath, strlen(material.userIdPath))); in HWTEST_F()
221 ASSERT_EQ(strlen("3"), strlen(material.userIdPath)) << "userId path is " << material.userIdPath; in HWTEST_F()
[all...]
H A Dhks_storage_util_test.cpp84 material.userIdPath = const_cast<char *>("999"); in HWTEST_F()
113 material.userIdPath = const_cast<char *>(""); in HWTEST_F()
142 material.userIdPath = const_cast<char *>("100"); in HWTEST_F()
171 material.userIdPath = const_cast<char *>("100"); in HWTEST_F()
201 material.userIdPath = const_cast<char *>("555"); in HWTEST_F()
231 material.userIdPath = const_cast<char *>(""); in HWTEST_F()
260 material.userIdPath = const_cast<char *>("0"); in HWTEST_F()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
H A Dcert_manager_file_operator.c442 char userIdPath[CM_MAX_FILE_NAME_LEN] = { 0 }; in CmUserIdLayerGetFileCountAndNames() local
455 (void)memset_s(userIdPath, CM_MAX_FILE_NAME_LEN, 0, CM_MAX_FILE_NAME_LEN); in CmUserIdLayerGetFileCountAndNames()
456 if (strncpy_s(userIdPath, sizeof(userIdPath), path, strlen(path)) != EOK) { in CmUserIdLayerGetFileCountAndNames()
461 if (userIdPath[strlen(userIdPath) - 1] != '/') { in CmUserIdLayerGetFileCountAndNames()
462 if (strncat_s(userIdPath, sizeof(userIdPath), "/", strlen("/")) != EOK) { in CmUserIdLayerGetFileCountAndNames()
468 if (strncat_s(userIdPath, sizeof(userIdPath), dir in CmUserIdLayerGetFileCountAndNames()
[all...]
H A Dcert_manager_storage.c62 char *userIdPath, uint32_t pathLen) in ConstructUserIdPath()
70 if (snprintf_s(userIdPath, pathLen, pathLen - 1, "%s%u", rootPath, context->userId) < 0) { in ConstructUserIdPath()
75 ret = CmMakeDir(userIdPath); in ConstructUserIdPath()
87 char userIdPath[CERT_MAX_PATH_LEN] = { 0 }; in ConstructUidPath() local
88 int32_t ret = ConstructUserIdPath(context, store, userIdPath, CERT_MAX_PATH_LEN); in ConstructUidPath()
93 if (snprintf_s(uidPath, pathLen, pathLen - 1, "%s/%u", userIdPath, context->uid) < 0) { in ConstructUidPath()
262 CM_LOG_E("Construct userIdPath failed, rootPath: %s, userId: %u", rootPath, userId); in CmGetCertConfUserIdDir()
268 CM_LOG_E("Create userIdPath failed, err code: %d", ret); in CmGetCertConfUserIdDir()
390 char userIdPath[CERT_MAX_PATH_LEN] = { 0 }; in CmGetCertBackupDir() local
392 if (snprintf_s(userIdPath, CERT_MAX_PATH_LE in CmGetCertBackupDir()
61 ConstructUserIdPath(const struct CmContext *context, uint32_t store, char *userIdPath, uint32_t pathLen) ConstructUserIdPath() argument
[all...]
H A Dcm_event_process.c229 static int32_t TraversalUserIdLayerDir(const struct CmContext *context, const char *userIdPath, const char *direName, in TraversalUserIdLayerDir() argument
243 ret = CmTraversalUidLayerDir(&userContext, userIdPath, store, true); in TraversalUserIdLayerDir()
246 ret = CmTraversalUidLayerDir(context, userIdPath, store, true); in TraversalUserIdLayerDir()
248 ret = CmTraversalUidLayerDir(context, userIdPath, store, false); in TraversalUserIdLayerDir()
275 char userIdPath[CM_MAX_FILE_NAME_LEN] = {0}; in CmTraversalUserIdLayerDir() local
276 if (GetNextLayerPath(path, dire->d_name, userIdPath, sizeof(userIdPath)) != CM_SUCCESS) { in CmTraversalUserIdLayerDir()
282 (void)TraversalUserIdLayerDir(context, userIdPath, dire->d_name, store, isUserDeleteEvent); in CmTraversalUserIdLayerDir()
284 (void)remove(userIdPath); in CmTraversalUserIdLayerDir()
H A Dcert_manager_updateflag.c370 static int32_t UpdateUserCerts(uint32_t userId, const char *userIdPath) in UpdateUserCerts() argument
372 DIR *dir = opendir(userIdPath); in UpdateUserCerts()
374 CM_LOG_E("opendir userIdPath failed"); in UpdateUserCerts()
385 if (snprintf_s(uidPath, CERT_MAX_PATH_LEN, CERT_MAX_PATH_LEN - 1, "%s/%s", userIdPath, dire->d_name) < 0) { in UpdateUserCerts()
431 char userIdPath[CERT_MAX_PATH_LEN] = { 0 }; in UpdateAllUserCerts() local
451 if (snprintf_s(userIdPath, CERT_MAX_PATH_LEN, CERT_MAX_PATH_LEN - 1, "%s%s", USER_CA_STORE, dire->d_name) < 0) { in UpdateAllUserCerts()
462 int32_t ret = UpdateUserCerts(userId, userIdPath); in UpdateAllUserCerts()
464 CM_LOG_E("Failed to update all certificates for the userIdPath"); in UpdateAllUserCerts()
H A Dcert_manager_file.c183 int32_t GetNumberOfDirs(const char *userIdPath) in GetNumberOfDirs() argument
185 void *dir = CmOpenDir(userIdPath); in GetNumberOfDirs()
H A Dcert_manager_query.c141 char userIdPath[MAX_PATH_LEN] = {0}; in CmGetCertPathList() local
143 int32_t ret = ConstructUserIdPath(context, store, userIdPath, MAX_PATH_LEN); in CmGetCertPathList()
149 ret = CreateCertPathList(userIdPath, pathList); in CmGetCertPathList()
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/
H A Dhks_storage_utils.c320 material->userIdPath, material->uidPath, material->pathType, anonymousKeyAlias); in RecordKeyOperation()
325 material->userIdPath, material->uidPath, material->pathType, anonymousKeyAlias); in RecordKeyOperation()
330 material->userIdPath, material->uidPath, material->pathType, anonymousKeyAlias); in RecordKeyOperation()
491 static int32_t CheckUserPathExist(enum HksPathType pathType, const char *userIdPath) in CheckUserPathExist() argument
495 pathType == CE_PATH ? HKS_CE_ROOT_PATH : HKS_ECE_ROOT_PATH, userIdPath); in CheckUserPathExist()
514 deDataPath, material->userIdPath, material->uidPath, material->storageTypePath); in ConstructPath()
518 ret = CheckUserPathExist(CE_PATH, material->userIdPath); in ConstructPath()
521 material->userIdPath, ceOrEceDataPath, material->uidPath, material->storageTypePath); in ConstructPath()
524 ret = CheckUserPathExist(ECE_PATH, material->userIdPath); in ConstructPath()
527 material->userIdPath, ceOrEceDataPat in ConstructPath()
[all...]
H A Dhks_storage_manager.c98 outMaterial->userIdPath = (char *)HksMalloc(HKS_MAX_DIRENT_FILE_LEN); in GetUserIdPath()
99 HKS_IF_NULL_LOGE_RETURN(outMaterial->userIdPath, HKS_ERROR_MALLOC_FAIL, "malloc userIdPath failed.") in GetUserIdPath()
104 ret = ConstructPlainName(&userIdBlob, outMaterial->userIdPath, HKS_MAX_FILE_NAME_LEN); in GetUserIdPath()
110 ret = ConstructName(&userIdBlob, outMaterial->userIdPath, HKS_MAX_FILE_NAME_LEN); in GetUserIdPath()
227 HKS_FREE(material->userIdPath); in FreeStorageMaterial()
/base/security/huks/test/fuzz_test/innerapi_fuzzer/hksstorage_fuzzer/
H A Dhksstorage_fuzzer.cpp358 HksMemCmp("1", material.userIdPath, strlen(material.userIdPath)); in HksStorageManagerTest001()
398 HksMemCmp("2", material.userIdPath, strlen(material.userIdPath)); in HksStorageManagerTest002()
438 HksMemCmp("3", material.userIdPath, strlen(material.userIdPath)); in HksStorageManagerTest003()
478 HksMemCmp("", material.userIdPath, strlen(material.userIdPath)); in HksStorageManagerTest004()
518 HksMemCmp("d+0+0+0", material.userIdPath, strlen(material.userIdPath)); in HksStorageManagerTest005()
[all...]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
H A Dcert_manager_file.h36 int32_t GetNumberOfDirs(const char *userIdPath);
H A Dcert_manager_storage.h41 char *userIdPath, uint32_t pathLen);
/base/security/huks/services/huks_standard/huks_service/main/upgrade/file_transfer/src/
H A Dhks_file_transfer.c56 outMaterial->userIdPath = (char *)HksMalloc(HKS_MAX_DIRENT_FILE_LEN); in GetStoreMaterial()
57 HKS_IF_NULL_RETURN(outMaterial->userIdPath, HKS_ERROR_MALLOC_FAIL); in GetStoreMaterial()
69 ret = ConstructPlainName(&userIdBlob, outMaterial->userIdPath, HKS_MAX_DIRENT_FILE_LEN); in GetStoreMaterial()
111 HKS_FREE(storeMaterial.userIdPath); in ConstructNewFilePath()
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/include/
H A Dhks_storage_utils.h71 char *userIdPath; member
/base/startup/appspawn/standard/
H A Dappspawn_service.c1470 char userIdPath[PATH_SIZE] = {0}; in ProcessSpawnRemountMsg() local
1471 int ret = snprintf_s(userIdPath, sizeof(userIdPath), sizeof(userIdPath) - 1, "%s/%s", rootPath, userId); in ProcessSpawnRemountMsg()
1474 DIR *userIdDir = opendir(userIdPath); in ProcessSpawnRemountMsg()
1475 APPSPAWN_CHECK(userIdDir != NULL, continue, "Failed to open %{public}s, errno %{public}d", userIdPath, errno); in ProcessSpawnRemountMsg()
1484 "%s/%s/data/storage/el1/bundle/arkwebcore", userIdPath, bundleName); in ProcessSpawnRemountMsg()
/base/theme/wallpaper_mgr/services/src/
H A Dwallpaper_service.cpp481 std::string userIdPath = WALLPAPER_USERID_PATH + std::to_string(userId); in GetWallpaperDir() local
484 wallpaperFilePath = userIdPath + "/" + WALLPAPER_SYSTEM_DIRNAME; in GetWallpaperDir()
486 wallpaperFilePath = userIdPath + "/" + WALLPAPER_LOCKSCREEN_DIRNAME; in GetWallpaperDir()

Completed in 16 milliseconds