On July 3, 2018 5:23 AM, Toan Le manh lemanhtoantb@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/Variabl...