]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: update SetVariable attribute check
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Tue, 21 Feb 2023 02:33:17 +0000 (11:33 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 13 Mar 2023 12:56:14 +0000 (13:56 +0100)
commit26a35023c41dcceda057173ac6cdcc1de5fd4f31
tree62ad88c22558368402990319480351398cc38bb7
parent5ee8d90f5469572f3b07d42857012d110476cd2f
efi_loader: update SetVariable attribute check

UEFI specification v2.10 says that
EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS is deprecated and
EFI_UNSUPPORTED should be returned in SetVariable variable service.
Current implementation returns EFI_INVALID_PARAMETER,
let's fix the return value.

Together with above change, this commit also updates the SetVariable
attribute check to be aligned with the EDK2 reference implementation.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_variable.c