]>
Commit | Line | Data |
---|---|---|
1 | ## @file\r | |
2 | # Provides SMM authenticated variable service\r | |
3 | #\r | |
4 | # This module installs SMM variable protocol into SMM protocol database,\r | |
5 | # which can be used by SMM driver, and installs SMM variable protocol\r | |
6 | # into BS protocol database, which can be used to notify the SMM Runtime\r | |
7 | # Dxe driver that the SMM variable service is ready.\r | |
8 | # This module should be used with SMM Runtime DXE module together. The\r | |
9 | # SMM Runtime DXE module installs variable arch protocol and variable\r | |
10 | # write arch protocol based on SMM variable module.\r | |
11 | #\r | |
12 | # Caution: This module requires additional review when modified.\r | |
13 | # This driver will have external input - variable data and communicate buffer in SMM mode.\r | |
14 | # This external input must be validated carefully to avoid security issues such as \r | |
15 | # buffer overflow or integer overflow.\r | |
16 | # The whole SMM authentication variable design relies on the integrity of flash part and SMM.\r | |
17 | # which is assumed to be protected by platform. All variable code and metadata in flash/SMM Memory\r | |
18 | # may not be modified without authorization. If platform fails to protect these resources, \r | |
19 | # the authentication service provided in this driver will be broken, and the behavior is undefined.\r | |
20 | #\r | |
21 | # Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r | |
22 | # This program and the accompanying materials\r | |
23 | # are licensed and made available under the terms and conditions of the BSD License\r | |
24 | # which accompanies this distribution. The full text of the license may be found at\r | |
25 | # http://opensource.org/licenses/bsd-license.php\r | |
26 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
27 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
28 | #\r | |
29 | ##\r | |
30 | \r | |
31 | [Defines]\r | |
32 | INF_VERSION = 0x00010005\r | |
33 | BASE_NAME = VariableAuthSmm\r | |
34 | MODULE_UNI_FILE = VariableAuthSmm.uni\r | |
35 | FILE_GUID = D34BDC5E-968A-40f5-A48C-E594F45AE211\r | |
36 | MODULE_TYPE = DXE_SMM_DRIVER\r | |
37 | VERSION_STRING = 1.0\r | |
38 | PI_SPECIFICATION_VERSION = 0x0001000A\r | |
39 | ENTRY_POINT = VariableServiceInitialize\r | |
40 | \r | |
41 | #\r | |
42 | # The following information is for reference only and not required by the build tools.\r | |
43 | #\r | |
44 | # VALID_ARCHITECTURES = IA32 X64\r | |
45 | #\r | |
46 | \r | |
47 | \r | |
48 | [Sources]\r | |
49 | Reclaim.c\r | |
50 | Variable.c\r | |
51 | VariableSmm.c\r | |
52 | AuthService.c\r | |
53 | VarCheck.c\r | |
54 | Variable.h\r | |
55 | AuthService.h\r | |
56 | \r | |
57 | [Packages]\r | |
58 | MdePkg/MdePkg.dec\r | |
59 | MdeModulePkg/MdeModulePkg.dec\r | |
60 | CryptoPkg/CryptoPkg.dec\r | |
61 | SecurityPkg/SecurityPkg.dec\r | |
62 | \r | |
63 | [LibraryClasses]\r | |
64 | UefiDriverEntryPoint\r | |
65 | MemoryAllocationLib\r | |
66 | BaseLib\r | |
67 | SynchronizationLib\r | |
68 | UefiLib\r | |
69 | SmmServicesTableLib\r | |
70 | BaseMemoryLib\r | |
71 | DebugLib\r | |
72 | DxeServicesTableLib\r | |
73 | BaseCryptLib\r | |
74 | PlatformSecureLib\r | |
75 | HobLib\r | |
76 | PcdLib\r | |
77 | DevicePathLib\r | |
78 | SmmMemLib\r | |
79 | \r | |
80 | [Protocols]\r | |
81 | gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES\r | |
82 | \r | |
83 | ## PRODUCES\r | |
84 | ## UNDEFINED # SmiHandlerRegister\r | |
85 | gEfiSmmVariableProtocolGuid\r | |
86 | \r | |
87 | ## CONSUMES\r | |
88 | ## NOTIFY \r | |
89 | gEfiSmmFaultTolerantWriteProtocolGuid\r | |
90 | gEfiSmmEndOfDxeProtocolGuid ## NOTIFY\r | |
91 | gEdkiiSmmVarCheckProtocolGuid ## PRODUCES\r | |
92 | \r | |
93 | [Guids]\r | |
94 | ## PRODUCES ## GUID # Variable store header\r | |
95 | ## CONSUMES ## GUID # Variable store header\r | |
96 | ## SOMETIMES_CONSUMES ## HOB\r | |
97 | gEfiAuthenticatedVariableGuid\r | |
98 | \r | |
99 | ## SOMETIMES_CONSUMES ## Variable:L"PlatformLang"\r | |
100 | ## SOMETIMES_PRODUCES ## Variable:L"PlatformLang"\r | |
101 | ## SOMETIMES_CONSUMES ## Variable:L"Lang"\r | |
102 | ## SOMETIMES_PRODUCES ## Variable:L"Lang"\r | |
103 | ## SOMETIMES_CONSUMES ## Variable:L"HwErrRecSupport"\r | |
104 | ## CONSUMES ## Variable:L"SetupMode"\r | |
105 | ## PRODUCES ## Variable:L"SetupMode"\r | |
106 | ## SOMETIMES_CONSUMES ## Variable:L"PK"\r | |
107 | ## SOMETIMES_CONSUMES ## Variable:L"KEK"\r | |
108 | ## CONSUMES ## Variable:L"SecureBoot"\r | |
109 | ## PRODUCES ## Variable:L"SecureBoot"\r | |
110 | ## CONSUMES ## Variable:L"SignatureSupport"\r | |
111 | ## PRODUCES ## Variable:L"SignatureSupport"\r | |
112 | ## PRODUCES ## Variable:L"VendorKeys"\r | |
113 | gEfiGlobalVariableGuid\r | |
114 | \r | |
115 | ## SOMETIMES_CONSUMES ## Variable:L"DB"\r | |
116 | ## SOMETIMES_CONSUMES ## Variable:L"DBX"\r | |
117 | gEfiImageSecurityDatabaseGuid\r | |
118 | \r | |
119 | ## CONSUMES ## Variable:L"SecureBootEnable"\r | |
120 | ## PRODUCES ## Variable:L"SecureBootEnable"\r | |
121 | gEfiSecureBootEnableDisableGuid\r | |
122 | \r | |
123 | ## CONSUMES ## Variable:L"CustomMode"\r | |
124 | ## PRODUCES ## Variable:L"CustomMode"\r | |
125 | gEfiCustomModeEnableGuid\r | |
126 | \r | |
127 | ## CONSUMES ## Variable:L"certdb"\r | |
128 | ## PRODUCES ## Variable:L"certdb"\r | |
129 | gEfiCertDbGuid\r | |
130 | \r | |
131 | ## CONSUMES ## Variable:L"VendorKeysNv"\r | |
132 | ## PRODUCES ## Variable:L"VendorKeysNv"\r | |
133 | gEfiVendorKeysNvGuid\r | |
134 | \r | |
135 | gSmmVariableWriteGuid ## PRODUCES ## GUID # Install protocol\r | |
136 | gEfiCertTypeRsa2048Sha256Guid ## SOMETIMES_CONSUMES ## GUID # Unique ID for the format of the CertData.\r | |
137 | gEfiCertPkcs7Guid ## SOMETIMES_CONSUMES ## GUID # Unique ID for the format of the CertData.\r | |
138 | gEfiCertX509Guid ## SOMETIMES_CONSUMES ## GUID # Unique ID for the type of the signature.\r | |
139 | gEfiSystemNvDataFvGuid ## CONSUMES ## GUID\r | |
140 | gEfiHardwareErrorVariableGuid ## SOMETIMES_CONSUMES ## Variable:L"HwErrRec####"\r | |
141 | gEdkiiFaultTolerantWriteGuid ## SOMETIMES_CONSUMES ## HOB\r | |
142 | gEdkiiVarErrorFlagGuid ## CONSUMES ## GUID\r | |
143 | \r | |
144 | [Pcd]\r | |
145 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES\r | |
146 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES\r | |
147 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES\r | |
148 | gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES\r | |
149 | gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES\r | |
150 | gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES\r | |
151 | gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES\r | |
152 | gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES\r | |
153 | gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES\r | |
154 | gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES\r | |
155 | gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES\r | |
156 | \r | |
157 | [FeaturePcd]\r | |
158 | gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.\r | |
159 | gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang\r | |
160 | \r | |
161 | [Depex]\r | |
162 | TRUE\r | |
163 | \r | |
164 | [UserExtensions.TianoCore."ExtraFiles"]\r | |
165 | VariableSmmExtra.uni\r |