/** @file\r
Implementation functions and structures for var check services.\r
\r
-Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
DataSize,\r
Data\r
);\r
+ if (Status == EFI_WRITE_PROTECTED && RequestSource == VarCheckFromTrusted) {\r
+ //\r
+ // If RequestSource is trusted, then allow variable to be set even if it\r
+ // is write protected.\r
+ //\r
+ continue;\r
+ }\r
if (EFI_ERROR (Status)) {\r
DEBUG ((EFI_D_INFO, "Variable Check handler fail %r - %g:%s\n", Status, VendorGuid, VariableName));\r
return Status;\r