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