diff options
author | Peng Fan <peng.fan@nxp.com> | 2022-03-29 16:48:55 +0800 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2022-04-27 11:42:20 +0800 |
commit | 06583fcdcd5d2e33f87159feb682d16b61f7d933 (patch) | |
tree | c44c7f00462f2eec1eabe2ecd9857a8165493be1 /lib | |
parent | f1421596cd4a2303c43c606feda1730ae1504ff7 (diff) |
LFU-317-1 efi_loader: not support EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS
EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS should not be used, because
it is and old flag, stMM returns invalid flag, however ACS test
expect not support, so update it in U-Boot
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_variable_tee.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_variable_tee.c b/lib/efi_loader/efi_variable_tee.c index dfef18435d..c740fe0fc8 100644 --- a/lib/efi_loader/efi_variable_tee.c +++ b/lib/efi_loader/efi_variable_tee.c @@ -537,6 +537,11 @@ efi_status_t efi_set_variable_int(const u16 *variable_name, goto out; } + if (attributes & EFI_VARIABLE_AUTHENTICATED_WRITE_ACCESS) { + ret = EFI_UNSUPPORTED; + goto out; + } + /* * Allocate the buffer early, before switching to RW (if needed) * so we won't need to account for any failures in reading/setting |