!1534 单框架适应双框架安全加固修改

Merge pull request !1534 from zhaoshuyuan/master
This commit is contained in:
openharmony_ci 2024-11-20 09:38:08 +00:00 committed by Gitee
commit bc6a9388ba
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1101,7 +1101,7 @@ int KeyManager::ActiveCeSceSeceUserKey(unsigned int user,
if (!KeyCtrlHasFscryptSyspara()) { if (!KeyCtrlHasFscryptSyspara()) {
return 0; return 0;
} }
std::string need_restore_path = GetKeyDirByUserAndType(user, type) = RESTORE_DIR; std::string need_restore_path = GetKeyDirByUserAndType(user, type) + RESTORE_DIR;
std::error_code errCode; std::error_code errCode;
std::string restore_version; std::string restore_version;
(void)OHOS::LoadStringFromFile(need_restore_path, restore_version); (void)OHOS::LoadStringFromFile(need_restore_path, restore_version);