From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web11.14851.1605233140726120328 for ; Thu, 12 Nov 2020 18:05:44 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Fri, 13 Nov 2020 10:05:09 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: "'Bret Barkelew'" Cc: "'edk2-devel-groups-io'" , "'Laszlo Ersek'" , "'Michael D Kinney'" References: <20201109064522.919-1-bret.barkelew@microsoft.com> <003b01d6b8ff$87dae810$9790b830$@byosoft.com.cn> In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHY5IDAwLzEzXSBBZGQgdGhlIFZhcmlhYmxlUG9saWN5IGZlYXR1cmU=?= Date: Fri, 13 Nov 2020 10:05:11 +0800 Message-ID: <006901d6b961$6b084a40$4118dec0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJLPoKaSG+DZoUNf2pf4ozKyJfXuAJv8t+rAhqNHEsCyoXPAQHCj/28qJOI22A= Content-Type: multipart/alternative; boundary="----=_NextPart_000_006A_01D6B9A4.792DFB40" Content-Language: zh-cn ------=_NextPart_000_006A_01D6B9A4.792DFB40 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Bret: Yes. I think this patch set pass code review. If no objection, I will mer= ge it next Monday.=20 =20 Thanks Liming =E5=8F=91=E4=BB=B6=E4=BA=BA: Bret Barkelew =20 =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B411=E6=9C=8813=E6=97=A5 = 9:21 =E6=94=B6=E4=BB=B6=E4=BA=BA: gaoliming =E6=8A=84=E9=80=81: edk2-devel-groups-io ; Laszlo Er= sek ; Michael D Kinney =E4=B8=BB=E9=A2=98: Re: [edk2-devel] [PATCH v9 00/13] Add the VariablePoli= cy feature =20 Looks like I should have everything I need on this patch set. Can I assume= that someone will stage it to make it into 2011-stable? =20 On Thu, Nov 12, 2020 at 8:45 AM Bret Barkelew > wrote: Yes, I'm working on a more sustainable solution for the test cases and hav= e opened this bug to track it. 3073 =E2=80=93 Provide test cases/apps for VarPol (tianocore.org) =20 =20 I just didn't want that to hold up the rest of the code that's already bee= n signed off on. =20 On Thu, Nov 12, 2020 at 6:25 AM gaoliming > wrote: Bret: V9 version change is mainly for MdeModule Variable driver. The change is = good to me. Reviewed-by: Liming Gao > =20 Besides, I find V9 doesn=E2=80=99t include the patch 0014-MdeModulePkg-Ad= d-a-shell-based-functional-test-for-VariablePolicy. Because this patch does= n=E2=80=99t pass ECC, will you plan to add it later?=20 =20 Thanks Liming =E5=8F=91=E4=BB=B6=E4=BA=BA: bounce+27952+67296+4905953+8761045@groups.io = > =E4=BB=A3=E8=A1=A8 Bret Barkelew =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2020=E5=B9=B411=E6=9C=8812=E6=97=A5 = 2:44 =E6=94=B6=E4=BB=B6=E4=BA=BA: edk2-devel-groups-io > =E4=B8=BB=E9=A2=98: Re: [edk2-devel] [PATCH v9 00/13] Add the VariablePoli= cy feature =20 To clarify: =20 The current solution to the MorLock EndOfDxe issue is to expressly call Lo= ckVariablePolicy() in the same locations that mEndOfDxe is set (which was t= he mechanism that previously locked the VariableLock interface). This solut= ion maintains parity with the old design, which is keeping with the ethos o= f minimal changes and similar functionality to VariableLock. It does not in= troduce any new dependencies. =20 The only drawback to this approach is that it preserves the strict orderin= g that was also previously required by MorLock, which I will attempt to add= ress in later updates. =20 On Sun, Nov 8, 2020 at 10:45 PM Bret Barkelew > wrote: The 14 patches in this series add the VariablePolicy feature to the core, deprecate Edk2VarLock (while adding a compatibility layer to reduce code churn), and integrate the VariablePolicy libraries and protocols into Variable Services. Since the integration requires multiple changes, including adding librarie= s, a protocol, an SMI communication handler, and VariableServices integration= , the patches are broken up by individual library additions and then a final integration. Security-sensitive changes like bypassing Authenticated Variable enforcement are also broken out into individual patches so that attention can be called directly to them. Platform porting instructions are described in this wiki entry: https://github.com/tianocore/tianocore.github.io/wiki/VariablePolicy-Proto= col---Enhanced-Method-for-Managing-Variables#platform-porting Discussion of the feature can be found in multiple places throughout the last year on the RFC channel, staging branches, and in devel. Most recently, this subject was discussed in this thread: https://edk2.groups.io/g/devel/message/53712 (the code branches shared in that discussion are now out of date, but the whitepapers and discussion are relevant). Cc: Jiewen Yao > Cc: Dandan Bi > Cc: Chao Zhang > Cc: Jian J Wang > Cc: Hao A Wu > Cc: Liming Gao > Cc: Jordan Justen > Cc: Laszlo Ersek > Cc: Ard Biesheuvel = > Cc: Andrew Fish > Cc: Ray Ni > Cc: Bret Barkelew = > Signed-off-by: Bret Barkelew > v9 changes: * Rebase * Address the event ordering issues around MorLock at EndOfDxe * Drop problematic tests * Address ECC issues v8 changes: * Rebase * Small tweaks from final PRs * Drank a lot * Enrolled several members and a steward in CatFacts v7 changes: * Address comments from Dandan about security of the MM handler * Add readme * Fix bug around hex characters in BOOT####, etc * Add additional testing for hex characters * Add additional testing for authenticated variables v6 changes: * Fix an issue with uninitialized Status in InitVariablePolicyLib() and De= initVariablePolicyLib() * Fix GCC building in shell-based functional test * Rebase on latest origin/master v5 changes: * Fix the CONST mismatch in VariablePolicy.h and VariablePolicySmmDxe.c * Fix EFIAPI mismatches in the functional unittest * Rebase on latest origin/master v4 changes: * Remove Optional PcdAllowVariablePolicyEnforcementDisable PCD from platfo= rms * Rebase on master * Migrate to new MmCommunicate2 protocol * Fix an oversight in the default return value for InitMmCommonCommBuffer * Fix in VariablePolicyLib to allow ExtraInitRuntimeDxe to consume variabl= es V3 changes: * Address all non-unittest issues with ECC * Make additional style changes * Include section name in hunk headers in "ini-style" files * Remove requirement for the EdkiiPiSmmCommunicationsRegionTable driver (now allocates its own buffer) * Change names from VARIABLE_POLICY_PROTOCOL and gVariablePolicyProtocolGu= id to EDKII_VARIABLE_POLICY_PROTOCOL and gEdkiiVariablePolicyProtocolGuid * Fix GCC warning about initializing externs * Add UNI strings for new PCD * Add patches for ArmVirtPkg, OvmfXen, and UefiPayloadPkg * Reorder patches according to Liming's feedback about adding to platforms before changing variable driver V2 changes: * Fixed implementation for RuntimeDxe * Add PCD to block DisableVariablePolicy * Fix the DumpVariablePolicy pagination in SMM Bret Barkelew (13): MdeModulePkg: Define the VariablePolicy protocol interface MdeModulePkg: Define the VariablePolicyLib MdeModulePkg: Define the VariablePolicyHelperLib MdeModulePkg: Define the VarCheckPolicyLib and SMM interface OvmfPkg: Add VariablePolicy engine to OvmfPkg platform EmulatorPkg: Add VariablePolicy engine to EmulatorPkg platform ArmVirtPkg: Add VariablePolicy engine to ArmVirtPkg platform UefiPayloadPkg: Add VariablePolicy engine to UefiPayloadPkg platform MdeModulePkg: Connect VariablePolicy business logic to VariableServices MdeModulePkg: Allow VariablePolicy state to delete protected variables SecurityPkg: Allow VariablePolicy state to delete authenticated variables MdeModulePkg: Change TCG MOR variables to use VariablePolicy MdeModulePkg: Drop VarLock from RuntimeDxe variable driver MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.c = | 346 ++++++++ MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.c = | 396 ++++++++++ MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitNull.c = | 46 ++ MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitRuntimeDxe.= c | 85 ++ MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c = | 830 ++++++++++++++++++++ MdeModulePkg/Universal/Variable/RuntimeDxe/TcgMorLockDxe.c = | 52 +- MdeModulePkg/Universal/Variable/RuntimeDxe/TcgMorLockSmm.c = | 60 +- MdeModulePkg/Universal/Variable/RuntimeDxe/VarCheck.c = | 49 +- MdeModulePkg/Universal/Variable/RuntimeDxe/VariableDxe.c = | 60 ++ MdeModulePkg/Universal/Variable/RuntimeDxe/VariableLockRequestToLock.c = | 71 ++ MdeModulePkg/Universal/Variable/RuntimeDxe/VariablePolicySmmDxe.c = | 573 ++++++++++++++ MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.c = | 7 + MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c = | 14 + SecurityPkg/Library/AuthVariableLib/AuthService.c = | 30 +- ArmVirtPkg/ArmVirt.dsc.inc = | 4 + EmulatorPkg/EmulatorPkg.dsc = | 3 + MdeModulePkg/Include/Guid/VarCheckPolicyMmi.h = | 54 ++ MdeModulePkg/Include/Library/VariablePolicyHelperLib.h = | 164 ++++ MdeModulePkg/Include/Library/VariablePolicyLib.h = | 207 +++++ MdeModulePkg/Include/Protocol/VariablePolicy.h = | 157 ++++ MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf = | 42 + MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.uni = | 12 + MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf = | 35 + MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.uni = | 12 + MdeModulePkg/Library/VariablePolicyLib/ReadMe.md = | 406 ++++++++++ MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf = | 48 ++ MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.uni = | 12 + MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf = | 51 ++ MdeModulePkg/MdeModulePkg.ci.yaml = | 4 +- MdeModulePkg/MdeModulePkg.dec = | 26 +- MdeModulePkg/MdeModulePkg.dsc = | 9 + MdeModulePkg/MdeModulePkg.uni = | 7 + MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf = | 5 + MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf = | 4 + MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf = | 11 + MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf = | 4 + OvmfPkg/OvmfPkgIa32.dsc = | 5 + OvmfPkg/OvmfPkgIa32X64.dsc = | 5 + OvmfPkg/OvmfPkgX64.dsc = | 5 + OvmfPkg/OvmfXen.dsc = | 4 + SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf = | 2 + UefiPayloadPkg/UefiPayloadPkgIa32.dsc = | 4 + UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc = | 4 + 43 files changed, 3845 insertions(+), 80 deletions(-) create mode 100644 MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyL= ib.c create mode 100644 MdeModulePkg/Library/VariablePolicyHelperLib/VariableP= olicyHelperLib.c create mode 100644 MdeModulePkg/Library/VariablePolicyLib/VariablePolicyE= xtraInitNull.c create mode 100644 MdeModulePkg/Library/VariablePolicyLib/VariablePolicyE= xtraInitRuntimeDxe.c create mode 100644 MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.c create mode 100644 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableLoc= kRequestToLock.c create mode 100644 MdeModulePkg/Universal/Variable/RuntimeDxe/VariablePol= icySmmDxe.c create mode 100644 MdeModulePkg/Include/Guid/VarCheckPolicyMmi.h create mode 100644 MdeModulePkg/Include/Library/VariablePolicyHelperLib.h create mode 100644 MdeModulePkg/Include/Library/VariablePolicyLib.h create mode 100644 MdeModulePkg/Include/Protocol/VariablePolicy.h create mode 100644 MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyL= ib.inf create mode 100644 MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyL= ib.uni create mode 100644 MdeModulePkg/Library/VariablePolicyHelperLib/VariableP= olicyHelperLib.inf create mode 100644 MdeModulePkg/Library/VariablePolicyHelperLib/VariableP= olicyHelperLib.uni create mode 100644 MdeModulePkg/Library/VariablePolicyLib/ReadMe.md create mode 100644 MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.inf create mode 100644 MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ib.uni create mode 100644 MdeModulePkg/Library/VariablePolicyLib/VariablePolicyL= ibRuntimeDxe.inf --=20 2.28.0.windows.1 ------=_NextPart_000_006A_01D6B9A4.792DFB40 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Bret:

=C2= = =A0Yes. I think this patch set pass code review. If no objection, I will m= erge it next Monday.

&n= bsp;

Thanks

Liming

=E5=8F=91=E4=BB=B6=E4=BA=BA:<= span lang=3DEN-US style=3D'font-size:11.0pt;font-family:=E7=AD=89=E7=BA=BF'= > Bret Barkelew <bret@corthon.com>
=E5=8F=91=E9=80=81=E6=97=B6=E9= =97=B4: 2020=E5=B9=B411=E6=9C=8813=E6=97=A5= 9:21
=E6=94=B6=E4=BB=B6=E4=BA=BA: gaoliming <gaoliming@byosoft.com.cn>
= =E6=8A=84=E9=80=81: edk= 2-devel-groups-io <devel@edk2.groups.io>; Laszlo Ersek <lersek@red= hat.com>; Michael D Kinney <michael.d.kinney@intel.com>
= =E4=B8=BB=E9=A2=98: Re:= [edk2-devel] [PATCH v9 00/13] Add the VariablePolicy feature

&nb= sp;

Looks like= I should have everything I need on this patch set. Can I assume that someo= ne will stage it to make it into 2011-stable?

 

On Thu, Nov 12, 2020 at 8:45 AM Br= et Barkelew <bret@corthon.com>= ; wrote:

Yes, I'm wor= king on a more sustainable solution for the test cases and have opened this= bug to track it.
3073 =E2=80=93 Provide test cases/apps for Va= rPol (tianocore.org)

 

I just didn't want that to hold up the rest of th= e code that's already been signed off on.

=

 

On Thu, Nov 12, 2020 at 6:25 AM = gaoliming <gaoliming@byosoft.com.cn> wrote:

Bret:

 V9 version chan= ge is mainly for MdeModule Variable driver. The change is good to me. Revie= wed-by: Liming Gao <gaoliming@byosoft.com.cn>

 

 Besides, I find V9 doesn=E2=80=99t i= nclude the patch 0014-MdeModulePkg-Add-a-shell-based-functional-test-for-Va= riablePolicy. Because this patch doesn=E2=80=99t = pass ECC, will you plan to add it later? <= o:p>

 

Thanks

=

Liming

=E5=8F=91=E4=BB=B6=E4=BA=BA: bounce+27952+67296+4905953+8761045@groups.io <= bounce+27952+67296+4905953+8761045@groups.io> = =E4=BB= =A3=E8=A1=A8 Bret Barkelew
=E5=8F=91=E9=80=81=E6=97=B6=E9= =97=B4: 2020=E5=B9=B411=E6=9C=8812=E6=97=A5= 2:44
=E6=94=B6=E4=BB=B6=E4=BA=BA: edk2-devel-groups-io <devel@edk2.groups.io>
=E4= = =B8=BB=E9=A2=98: Re: [edk= 2-devel] [PATCH v9 00/13] Add the VariablePolicy feature

 

To clarify= :

 

The current solution to t= he MorLock EndOfDxe issue is to expressly call LockVariablePolicy() in the = same locations that mEndOfDxe is set (which was the mechanism that previous= ly locked the VariableLock interface). This solution maintains parity with = the old design, which is keeping with the ethos of minimal changes and simi= lar functionality to VariableLock. It does not introduce any new dependenci= es.

 

The only drawback to th= is approach is that it preserves the strict ordering that was also previous= ly required by MorLock, which I will attempt to address in later updates.

 

On Sun, Nov 8, 2020 at 10:45 PM Br= et Barkelew <bret@= corthon.com> wrote:

The 14 patches in this series add the VariablePolicy feature t= o the core,
deprecate Edk2VarLock (while adding a compatibility layer to= reduce code
churn), and integrate the VariablePolicy libraries and prot= ocols into
Variable Services.

Since the integration requires mult= iple changes, including adding libraries,
a protocol, an SMI communicati= on handler, and VariableServices integration,
the patches are broken up = by individual library additions and then a final
integration. Security-s= ensitive changes like bypassing Authenticated
Variable enforcement are a= lso broken out into individual patches so that
attention can be called d= irectly to them.

Platform porting instructions are described in this= wiki entry:
https://github.com/tianocore/tianocore.gith= ub.io/wiki/VariablePolicy-Protocol---Enhanced-Method-for-Managing-Variables= #platform-porting

Discussion of the feature can be found in mult= iple places throughout
the last year on the RFC channel, staging branche= s, and in devel.

Most recently, this subject was discussed in this t= hread:
https://edk2.groups.io/g/devel/message/53712
(the code = branches shared in that discussion are now out of date, but the
whitepap= ers and discussion are relevant).

Cc: Jiewen Yao <jiewen.yao@intel.com>
= Cc: Dandan Bi <= dandan.bi@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Ji= an J Wang <ji= an.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Liming Gao &= lt;liming.gao@int= el.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo= Ersek <lersek@re= dhat.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Andrew Fi= sh <afish@apple.com= >
Cc: Ray Ni <ray.ni@intel.com>
Cc: Bret Barkelew <brbarkel@microsoft.com>
= Signed-off-by: Bret Barkelew <brbarkel@microsoft.com>

v9 changes:
* Re= base
* Address the event ordering issues around MorLock at EndOfDxe
*= Drop problematic tests
* Address ECC issues

v8 changes:
* Reb= ase
* Small tweaks from final PRs
* Drank a lot
* Enrolled several= members and a steward in CatFacts

v7 changes:
* Address comments= from Dandan about security of the MM handler
* Add readme
* Fix bug = around hex characters in BOOT####, etc
* Add additional testing for hex = characters
* Add additional testing for authenticated variables

v= 6 changes:
* Fix an issue with uninitialized Status in InitVariablePolic= yLib() and DeinitVariablePolicyLib()
* Fix GCC building in shell-based f= unctional test
* Rebase on latest origin/master

v5 changes:
* = Fix the CONST mismatch in VariablePolicy.h and VariablePolicySmmDxe.c
* = Fix EFIAPI mismatches in the functional unittest
* Rebase on latest orig= in/master

v4 changes:
* Remove Optional PcdAllowVariablePolicyEnf= orcementDisable PCD from platforms
* Rebase on master
* Migrate to ne= w MmCommunicate2 protocol
* Fix an oversight in the default return value= for InitMmCommonCommBuffer
* Fix in VariablePolicyLib to allow ExtraIni= tRuntimeDxe to consume variables

V3 changes:
* Address all non-un= ittest issues with ECC
* Make additional style changes
* Include sect= ion name in hunk headers in "ini-style" files
* Remove require= ment for the EdkiiPiSmmCommunicationsRegionTable driver
  (now allo= cates its own buffer)
* Change names from VARIABLE_POLICY_PROTOCOL and g= VariablePolicyProtocolGuid
  to EDKII_VARIABLE_POLICY_PROTOCOL and = gEdkiiVariablePolicyProtocolGuid
* Fix GCC warning about initializing ex= terns
* Add UNI strings for new PCD
* Add patches for ArmVirtPkg, Ovm= fXen, and UefiPayloadPkg
* Reorder patches according to Liming's feedbac= k about adding to platforms
  before changing variable driver
V2 changes:
* Fixed implementation for RuntimeDxe
* Add PCD to bloc= k DisableVariablePolicy
* Fix the DumpVariablePolicy pagination in SMM
Bret Barkelew (13):
  MdeModulePkg: Define the VariablePolicy= protocol interface
  MdeModulePkg: Define the VariablePolicyLib  MdeModulePkg: Define the VariablePolicyHelperLib
  MdeModul= ePkg: Define the VarCheckPolicyLib and SMM interface
  OvmfPkg: Add= VariablePolicy engine to OvmfPkg platform
  EmulatorPkg: Add Varia= blePolicy engine to EmulatorPkg platform
  ArmVirtPkg: Add Variable= Policy engine to ArmVirtPkg platform
  UefiPayloadPkg: Add Variable= Policy engine to UefiPayloadPkg platform
  MdeModulePkg: Connect Va= riablePolicy business logic to
    VariableServices
  = MdeModulePkg: Allow VariablePolicy state to delete protected variables
&= nbsp; SecurityPkg: Allow VariablePolicy state to delete authenticated
&n= bsp;   variables
  MdeModulePkg: Change TCG MOR variables to u= se VariablePolicy
  MdeModulePkg: Drop VarLock from RuntimeDxe vari= able driver

 MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPol= icyLib.c                 | 346= ++++++++
 MdeModulePkg/Library/VariablePolicyHelperLib/VariablePol= icyHelperLib.c     | 396 ++++++++++
 MdeModulePkg/Li= brary/VariablePolicyLib/VariablePolicyExtraInitNull.c      &= nbsp;|  46 ++
 MdeModulePkg/Library/VariablePolicyLib/Variable= PolicyExtraInitRuntimeDxe.c |  85 ++
 MdeModulePkg/Library/Var= iablePolicyLib/VariablePolicyLib.c           =      | 830 ++++++++++++++++++++
 MdeModulePkg/Unive= rsal/Variable/RuntimeDxe/TcgMorLockDxe.c          =        |  52 +-
 MdeModulePkg/Universal/Va= riable/RuntimeDxe/TcgMorLockSmm.c            =      |  60 +-
 MdeModulePkg/Universal/Variable/= RuntimeDxe/VarCheck.c               = ;       |  49 +-
 MdeModulePkg/Universal/Variab= le/RuntimeDxe/VariableDxe.c             =      |  60 ++
 MdeModulePkg/Universal/Variable= /RuntimeDxe/VariableLockRequestToLock.c     |  71 ++ MdeModulePkg/Universal/Variable/RuntimeDxe/VariablePolicySmmDxe.c&nb= sp;         | 573 ++++++++++++++
 MdeModulePkg/= Universal/Variable/RuntimeDxe/VariableSmm.c        &nbs= p;          |   7 +
 MdeModulePk= g/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.c     =    |  14 +
 SecurityPkg/Library/AuthVariableLib/Aut= hService.c                  &n= bsp;       |  30 +-
 ArmVirtPkg/ArmVirt.dsc.inc=                      = ;                     &nb= sp;      |   4 +
 EmulatorPkg/EmulatorPkg.= dsc                    &n= bsp;                     =       |   3 +
 MdeModulePkg/Include/Guid/V= arCheckPolicyMmi.h                &= nbsp;             |  54 ++
 MdeM= odulePkg/Include/Library/VariablePolicyHelperLib.h      &nbs= p;              | 164 ++++
 MdeM= odulePkg/Include/Library/VariablePolicyLib.h        &nb= sp;                  | 207 +++= ++
 MdeModulePkg/Include/Protocol/VariablePolicy.h    &nb= sp;                     &= nbsp;  | 157 ++++
 MdeModulePkg/Library/VarCheckPolicyLib/VarC= heckPolicyLib.inf               |&n= bsp; 42 +
 MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib= .uni               |  12 +
=  MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.= inf   |  35 +
 MdeModulePkg/Library/VariablePolicyHe= lperLib/VariablePolicyHelperLib.uni   |  12 +
 MdeMo= dulePkg/Library/VariablePolicyLib/ReadMe.md        &nbs= p;                  | 406 ++++= ++++++
 MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.in= f               |  48 ++
&n= bsp;MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.uni  &nbs= p;            |  12 +
 MdeModule= Pkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf    =  |  51 ++
 MdeModulePkg/MdeModulePkg.ci.yaml   =                     &nbs= p;                 |   4 = +-
 MdeModulePkg/MdeModulePkg.dec         =                     &nbs= p;               |  26 +-
 = MdeModulePkg/MdeModulePkg.dsc            &nbs= p;                     &n= bsp;           |   9 +
 MdeModul= ePkg/MdeModulePkg.uni               = ;                     &nb= sp;         |   7 +
 MdeModulePkg/Uni= versal/Variable/RuntimeDxe/VariableRuntimeDxe.inf       = ;   |   5 +
 MdeModulePkg/Universal/Variable/Runtime= Dxe/VariableSmm.inf                =  |   4 +
 MdeModulePkg/Universal/Variable/RuntimeDxe= /VariableSmmRuntimeDxe.inf       |  11 +
 = MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf  &= nbsp;     |   4 +
 OvmfPkg/OvmfPkgIa32.dsc = ;                     &nb= sp;                     &= nbsp;       |   5 +
 OvmfPkg/OvmfPkgIa32X6= 4.dsc                    =                      = ;        |   5 +
 OvmfPkg/OvmfPkgX64.= dsc                    &n= bsp;                     =            |   5 +
 OvmfPkg= /OvmfXen.dsc                  =                      = ;                 |   4 +=
 SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf  &nb= sp;                 |   2= +
 UefiPayloadPkg/UefiPayloadPkgIa32.dsc       = ;                     &nb= sp;         |   4 +
 UefiPayloadPkg/U= efiPayloadPkgIa32X64.dsc              &n= bsp;                    |=    4 +
 43 files changed, 3845 insertions(+), 80 deletion= s(-)
 create mode 100644 MdeModulePkg/Library/VarCheckPolicyLib/Var= CheckPolicyLib.c
 create mode 100644 MdeModulePkg/Library/VariableP= olicyHelperLib/VariablePolicyHelperLib.c
 create mode 100644 MdeMod= ulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitNull.c
 cre= ate mode 100644 MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraI= nitRuntimeDxe.c
 create mode 100644 MdeModulePkg/Library/VariablePo= licyLib/VariablePolicyLib.c
 create mode 100644 MdeModulePkg/Univer= sal/Variable/RuntimeDxe/VariableLockRequestToLock.c
 create mode 10= 0644 MdeModulePkg/Universal/Variable/RuntimeDxe/VariablePolicySmmDxe.c
&= nbsp;create mode 100644 MdeModulePkg/Include/Guid/VarCheckPolicyMmi.h
&n= bsp;create mode 100644 MdeModulePkg/Include/Library/VariablePolicyHelperLib= .h
 create mode 100644 MdeModulePkg/Include/Library/VariablePolicyL= ib.h
 create mode 100644 MdeModulePkg/Include/Protocol/VariablePoli= cy.h
 create mode 100644 MdeModulePkg/Library/VarCheckPolicyLib/Var= CheckPolicyLib.inf
 create mode 100644 MdeModulePkg/Library/VarChec= kPolicyLib/VarCheckPolicyLib.uni
 create mode 100644 MdeModulePkg/L= ibrary/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
 create = mode 100644 MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelp= erLib.uni
 create mode 100644 MdeModulePkg/Library/VariablePolicyLi= b/ReadMe.md
 create mode 100644 MdeModulePkg/Library/VariablePolicy= Lib/VariablePolicyLib.inf
 create mode 100644 MdeModulePkg/Library/= VariablePolicyLib/VariablePolicyLib.uni
 create mode 100644 MdeModu= lePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf

-- <= br>2.28.0.windows.1

------=_NextPart_000_006A_01D6B9A4.792DFB40--