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

Signed-off-by: zhaoshuyuan <zhaoshuyuan2@huawei.com>
This commit is contained in:
zhaoshuyuan 2024-11-20 14:37:58 +08:00
parent 4ec4fa7bcb
commit c5114d1ce5

View File

@ -1101,7 +1101,7 @@ int KeyManager::ActiveCeSceSeceUserKey(unsigned int user,
if (!KeyCtrlHasFscryptSyspara()) {
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::string restore_version;
(void)OHOS::LoadStringFromFile(need_restore_path, restore_version);