Searched refs:rootPath (Results 1 – 5 of 5) sorted by relevance
/base/startup/init/interfaces/innerkits/sandbox/ |
D | sandbox.c | 316 if (sandbox->rootPath == NULL) { in ParseSandboxConfig() 323 sandbox->rootPath = strdup(rootdir); in ParseSandboxConfig() 324 BEGET_ERROR_CHECK(sandbox->rootPath != NULL, return -1, in ParseSandboxConfig() 465 if (sandbox->rootPath == NULL) { in IsValidSandbox() 477 const char *rootPath = (const char *)data; in MountSandboxNode() local 480 … BEGET_ERROR_CHECK(snprintf_s(target, PATH_MAX, PATH_MAX - 1, "%s%s", rootPath, info->target) > 0, in MountSandboxNode() 492 static int MountSandboxInfo(struct ListNode *head, const char *rootPath, SandboxTag tag) in MountSandboxInfo() argument 494 if ((head == NULL) || (rootPath == NULL)) { in MountSandboxInfo() 497 int ret = OH_ListTraversal(head, (void *)rootPath, MountSandboxNode, 1); in MountSandboxInfo() 506 const char *rootPath = (const char *)data; in LinkSandboxNode() local [all …]
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_storage.c | 26 int32_t GetRootPath(uint32_t store, char *rootPath, uint32_t pathLen) in GetRootPath() argument 33 ret = memcpy_s(rootPath, pathLen - 1, CREDNTIAL_STORE, strlen(CREDNTIAL_STORE)); in GetRootPath() 36 ret = memcpy_s(rootPath, pathLen - 1, SYSTEM_CA_STORE, strlen(SYSTEM_CA_STORE)); in GetRootPath() 39 ret = memcpy_s(rootPath, pathLen - 1, USER_CA_STORE, strlen(USER_CA_STORE)); in GetRootPath() 42 ret = memcpy_s(rootPath, pathLen - 1, PRI_CREDNTIAL_STORE, strlen(PRI_CREDNTIAL_STORE)); in GetRootPath() 59 char rootPath[CERT_MAX_PATH_LEN] = { 0 }; in ConstructUserIdPath() local 60 int32_t ret = GetRootPath(store, rootPath, CERT_MAX_PATH_LEN); in ConstructUserIdPath() 65 if (snprintf_s(userIdPath, pathLen, pathLen - 1, "%s/%u", rootPath, context->userId) < 0) { in ConstructUserIdPath()
|
/base/startup/init/interfaces/innerkits/sandbox/include/ |
D | sandbox.h | 51 char *rootPath; // /mnt/sandbox/system|vendor|xxx member
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/ |
D | cert_manager_storage.h | 31 int32_t GetRootPath(uint32_t store, char *rootPath, uint32_t pathLen);
|
/base/security/huks/services/huks_standard/huks_service/main/core/src/ |
D | hks_storage.c | 1213 char *rootPath = NULL; in StoreDestroy() local 1215 ret = GetStoreRootPath(HKS_STORAGE_BACKUP_PATH, &rootPath); in StoreDestroy() 1217 ret = GetStoreRootPath(HKS_STORAGE_MAIN_PATH, &rootPath); in StoreDestroy() 1226 ret = GetPath(rootPath, processNameEncoded, storePath, HKS_MAX_FILE_NAME_LEN, bakFlag); in StoreDestroy()
|