]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmm.inf
SecurityPkg Variable: Support the new introduced PcdMaxAuthVariableSize.
[mirror_edk2.git] / SecurityPkg / VariableAuthenticated / RuntimeDxe / VariableSmm.inf
CommitLineData
0c18794e 1## @file\r
60c944c7 2# Provides SMM authenticated variable service\r
0c18794e 3#\r
4# This module installs SMM variable protocol into SMM protocol database,\r
2d3fb919 5# which can be used by SMM driver, and installs SMM variable protocol\r
0c18794e 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
2d3fb919 8# This module should be used with SMM Runtime DXE module together. The\r
60c944c7 9# SMM Runtime DXE module installs variable arch protocol and variable\r
0c18794e 10# write arch protocol based on SMM variable module.\r
11#\r
dc204d5a
JY
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
60c944c7
DG
14# This external input must be validated carefully to avoid security issues such as \r
15# buffer overflow or integer overflow.\r
36bdec3c
CZ
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
dc204d5a 20#\r
17409b7a 21# Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>\r
0c18794e 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
201edad3 33 BASE_NAME = VariableAuthSmm\r
60c944c7 34 MODULE_UNI_FILE = VariableAuthSmm.uni\r
0c18794e 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
17409b7a 53 VarCheck.c\r
0c18794e 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
2d3fb919 74 PlatformSecureLib\r
9a000b46 75 HobLib\r
17409b7a
SZ
76 PcdLib\r
77 DevicePathLib\r
9054e55a 78 SmmMemLib\r
0c18794e 79\r
80[Protocols]\r
60c944c7 81 gEfiSmmFirmwareVolumeBlockProtocolGuid ## CONSUMES\r
60c944c7
DG
82 \r
83 ## PRODUCES\r
84 ## UNDEFINED # SmiHandlerRegister\r
85 gEfiSmmVariableProtocolGuid\r
86 \r
87 ## CONSUMES\r
88 ## NOTIFY \r
89 gEfiSmmFaultTolerantWriteProtocolGuid\r
17409b7a
SZ
90 gEfiSmmEndOfDxeProtocolGuid ## NOTIFY\r
91 gEdkiiSmmVarCheckProtocolGuid ## PRODUCES\r
0c18794e 92\r
93[Guids]\r
60c944c7
DG
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
0c18794e 117 gEfiImageSecurityDatabaseGuid\r
60c944c7
DG
118 \r
119 ## CONSUMES ## Variable:L"SecureBootEnable"\r
120 ## PRODUCES ## Variable:L"SecureBootEnable"\r
beda2356 121 gEfiSecureBootEnableDisableGuid\r
60c944c7
DG
122 \r
123 ## CONSUMES ## Variable:L"CustomMode"\r
124 ## PRODUCES ## Variable:L"CustomMode"\r
ecc722ad 125 gEfiCustomModeEnableGuid\r
60c944c7
DG
126 \r
127 ## CONSUMES ## Variable:L"certdb"\r
128 ## PRODUCES ## Variable:L"certdb"\r
ed47ae02 129 gEfiCertDbGuid\r
0c18794e 130\r
60c944c7
DG
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
952ba83c
SZ
142 gEdkiiVarErrorFlagGuid ## CONSUMES ## GUID\r
143\r
0c18794e 144[Pcd]\r
60c944c7
DG
145 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize ## CONSUMES\r
146 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase ## SOMETIMES_CONSUMES\r
147 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64 ## CONSUMES\r
148 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize ## CONSUMES\r
13af4ab0 149 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize ## CONSUMES\r
60c944c7
DG
150 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize ## CONSUMES\r
151 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize ## CONSUMES\r
152 gEfiMdeModulePkgTokenSpaceGuid.PcdHwErrStorageSize ## CONSUMES\r
952ba83c
SZ
153 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxUserNvVariableSpaceSize ## CONSUMES\r
154 gEfiMdeModulePkgTokenSpaceGuid.PcdBoottimeReservedNvVariableSpaceSize ## CONSUMES\r
93626a53 155 gEfiMdeModulePkgTokenSpaceGuid.PcdReclaimVariableSpaceAtEndOfDxe ## CONSUMES\r
952ba83c 156\r
0c18794e 157[FeaturePcd]\r
60c944c7
DG
158 gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics ## CONSUMES # statistic the information of variable.\r
159 gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultLangDeprecate ## CONSUMES # Auto update PlatformLang/Lang\r
0c18794e 160\r
161[Depex]\r
2d3fb919 162 TRUE\r
60c944c7
DG
163 \r
164[UserExtensions.TianoCore."ExtraFiles"]\r
13af4ab0 165 VariableSmmExtra.uni\r