[SECURITY] Cheap password protection against tune modification fix #4243

helping build
This commit is contained in:
rusefillc 2022-07-30 14:16:11 -04:00
parent 7a61d2bda5
commit ee455d23f8
1 changed files with 2 additions and 0 deletions

View File

@ -236,7 +236,9 @@ bool isLockedFromUser() {
void unlockEcu(int password) {
if (password != engineConfiguration->tuneHidingKey) {
efiPrintf("Nope rebooting...");
#if EFI_PROD_CODE
scheduleReboot();
#endif // EFI_PROD_CODE
} else {
efiPrintf("Unlocked! Burning...");
engineConfiguration->tuneHidingKey = 0;