[coreboot] gRT->SetVariable ACCESS DENIED error

Trammell Hudson hudson at trmm.net
Tue Jul 3 11:57:13 CEST 2018


On July 3, 2018 5:23 AM, Toan Le manh <lemanhtoantb at gmail.com> wrote:

> I'm facing the Status EFI_ACCESS_DENIED when using gRT->SetVariable() method.
> 
> There is no description of this returned status forSetVariable()  in UEFI spec.

It looks like the SmmVariableHandler can return EFI_ACCESS_DENIED, even though it is not declared in the documentation comment.  There are some pre-condition reasons (empty variable name, too long of a buffer, etc) as well as things like attempting to access a boot time variable after end of DXE:

https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c#L730

-- 
Trammell



More information about the coreboot mailing list