[PATCH v3 1/2] efi_loader: expose efi_image_parse() even if UEFI Secure Boot is disabled

Heinrich Schuchardt xypron.glpk at gmx.de
Sat May 8 16:08:42 CEST 2021


On 4/28/21 3:16 PM, Heinrich Schuchardt wrote:
> On 28.04.21 14:19, Masahisa Kojima wrote:
<snip />
>>   /**
>>    * cmp_pe_section() - compare virtual addresses of two PE image sections
>>    * @arg1:	pointer to pointer to first section header
>> @@ -504,6 +565,9 @@ static bool efi_image_authenticate(void *efi, size_t efi_size)
>>
>>   	EFI_PRINT("%s: Enter, %d\n", __func__, ret);
>>
>> +	if (!IS_ENABLED(CONFIG_EFI_SECURE_BOOT))
>> +		return true;
>> +
>
> Why is this needed? Doesn't efi_secure_boot_enabled() return false in
> this case?

Hello Masahisa,

I did not see any reply yet. Was a mail lost?

Best regards

Heinrich


More information about the U-Boot mailing list