[SECURITY] Cheap password protection against tune modification fix #4243
helping build
This commit is contained in:
parent
7a61d2bda5
commit
ee455d23f8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue