Searched refs:trustPath (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/commonlibrary/utils_lite/js/builtin/kvstorekit/src/ |
H A D | nativeapi_kv_impl.c | 59 static int GetRealPath(const char* originPath, char* trustPath, size_t tPathLen) in GetRealPath() argument 62 if (PathCanonicalize(trustPath, originPath)) { in GetRealPath() 66 if (realpath(originPath, trustPath) != NULL) { in GetRealPath() 72 if (strncpy_s(trustPath, tPathLen, originPath, strlen(originPath)) == EOK) { in GetRealPath()
|
/ohos5.0/base/tee/tee_client/services/teecd/src/ |
H A D | fs_work_agent.c | 491 static uint32_t GetRealFilePath(const char *originPath, char *trustPath, size_t tPathLen) in GetRealFilePath() argument 493 char *retPath = realpath(originPath, trustPath); in GetRealFilePath() 505 errno_t rc = strncpy_s(trustPath, tPathLen, originPath, strlen(originPath)); in GetRealFilePath() 512 if (!IsValidFilePath(trustPath)) { in GetRealFilePath() 625 char trustPath[PATH_MAX] = { 0 }; in DoOpenFile() local 627 uint32_t rRet = GetRealFilePath(path, trustPath, sizeof(trustPath)); in DoOpenFile() 633 FILE *pFile = fopen(trustPath, transControl->args.open.mode); in DoOpenFile() 638 ChownSecStorage(trustPath, true); in DoOpenFile()
|
/ohos5.0/commonlibrary/utils_lite/js/builtin/filekit/src/ |
H A D | nativeapi_fs_impl.c | 45 static int GetRealPath(const char* originPath, char* trustPath, size_t tPathLen) in GetRealPath() argument 48 if (PathCanonicalize(trustPath, originPath)) { in GetRealPath() 52 if (realpath(originPath, trustPath) != NULL) { in GetRealPath() 58 if (strncpy_s(trustPath, tPathLen, originPath, strlen(originPath)) == EOK) { in GetRealPath()
|