mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-07-26 01:55:27 +00:00
Remove whitelisting - the firmware will handle it via LoadImage/StartImage
This commit is contained in:
parent
d259b14060
commit
f9435d9664
17
shim.c
17
shim.c
@ -310,16 +310,6 @@ static EFI_STATUS check_blacklist (WIN_CERTIFICATE_EFI_PKCS *cert, UINT8 *hash)
|
|||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static EFI_STATUS check_whitelist (WIN_CERTIFICATE_EFI_PKCS *cert, UINT8 *hash)
|
|
||||||
{
|
|
||||||
if (check_db_hash(L"db", hash) == DATA_FOUND)
|
|
||||||
return EFI_SUCCESS;
|
|
||||||
if (check_db_cert(L"db", cert, hash) == DATA_FOUND)
|
|
||||||
return EFI_SUCCESS;
|
|
||||||
|
|
||||||
return EFI_ACCESS_DENIED;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check that the signature is valid and matches the binary
|
* Check that the signature is valid and matches the binary
|
||||||
*/
|
*/
|
||||||
@ -510,13 +500,6 @@ static EFI_STATUS verify_buffer (char *data, int datasize,
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = check_whitelist(cert, hash);
|
|
||||||
|
|
||||||
if (status == EFI_SUCCESS) {
|
|
||||||
Print(L"Binary is whitelisted\n");
|
|
||||||
goto done;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!AuthenticodeVerify(cert->CertData,
|
if (!AuthenticodeVerify(cert->CertData,
|
||||||
context->SecDir->Size - sizeof(cert->Hdr),
|
context->SecDir->Size - sizeof(cert->Hdr),
|
||||||
vendor_cert, sizeof(vendor_cert), hash,
|
vendor_cert, sizeof(vendor_cert), hash,
|
||||||
|
Loading…
Reference in New Issue
Block a user