From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.99]) by mx.groups.io with SMTP id smtpd.web11.7217.1598424588812830479 for ; Tue, 25 Aug 2020 23:49:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=Fw8sO5h4; spf=pass (domain: microsoft.com, ip: 40.107.220.99, mailfrom: bret.barkelew@microsoft.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qb/u34j8FCKCXthTRPIEq7DcoxCxL1Vell71ofP1270pqf5M4fs5CSYhfnQhgdLFzOiYni7xaoolsxYgXYfss2zoww5HH9qCibBosu/VwlXFFLFqJFkF22/QASEAF4BubJT+Kjkpowwu1tAvCbvSz4O3NKKmG3nBEE6Ygpi4kC+sKOm20Klp4PRAPx1Hu9fKFZ6xw2R/PgejjdtmnwdZ5OZAmXNXAxsC2uTwHTl5B4FPc/XjaiRiiTd0sl8MwfsTvvxAfIlq5tjQDWk6uDc2QyohN88mxe9t4fu0mpxVqqdCrXFJ17YoB9bVU2u1uaCK7dzdgxfRXMoDzbpVja/Qaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V+7Gl/KhKNfLBkeCSSbdEY8XgvDm4zjNVrmzjeVpI8k=; b=KkUJt4lAY9dL+BhxXPo/Me43BmWaEQ9q8hGAWZN8fu/lr5ldWTqp9U5IfXAVjGPIZV1cm5Lf3mbiEIgCGPhuFpyEUhAy3RMcNK0WI+z3ARuLYb4ADxvqG6fQTOkQpj3wy8AINAUHEGPrM9u44gpHs9MtQnMGFObldS8Wq3Ok9aiUHG/6WdpSCO+HAZBLwNYJPZkAApbu+zfOj0lsFBjAJX2GNT5I4Oo3w/AV6E3/IEjrec5FXEf4X1erN8on7IQh+pqsCNhxRmVlV3c0RttGtDRLTsvgGqZLDhE2t6as701ikes8uhlex+xt7GEqEAr/KiWW4jd4hgCiiawUcK59xA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V+7Gl/KhKNfLBkeCSSbdEY8XgvDm4zjNVrmzjeVpI8k=; b=Fw8sO5h41aoj8bT+5osS+vQqMjtqhO8uoRDM7YslEz3oFWuVHy/kVNpS5BTrO+4Fwl9AbhgMuWxSWJ3OrsEy3MbKKhUiBNGEH75mgoZRDvkSbhCkJf8DaxEB0e8P/DCDH3Uw0lDlg2bad3WSDJrEvuQ/LY8Z7RCeTgCXPCt9RSE= Received: from CY4PR21MB0743.namprd21.prod.outlook.com (2603:10b6:903:b2::9) by CY4PR21MB0741.namprd21.prod.outlook.com (2603:10b6:903:b2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.1; Wed, 26 Aug 2020 06:49:44 +0000 Received: from CY4PR21MB0743.namprd21.prod.outlook.com ([fe80::2ca0:7d3e:e918:c47a]) by CY4PR21MB0743.namprd21.prod.outlook.com ([fe80::2ca0:7d3e:e918:c47a%12]) with mapi id 15.20.3326.016; Wed, 26 Aug 2020 06:49:44 +0000 From: "Bret Barkelew" To: "devel@edk2.groups.io" , "dandan.bi@intel.com" , "bret@corthon.com" CC: "Yao, Jiewen" , "Zhang, Chao B" , "Wang, Jian J" , "Wu, Hao A" , liming.gao , "Justen, Jordan L" , Laszlo Ersek , Ard Biesheuvel , Andrew Fish , "Ni, Ray" Subject: Re: [edk2-devel] [PATCH v6 00/14] Add the VariablePolicy feature Thread-Topic: [edk2-devel] [PATCH v6 00/14] Add the VariablePolicy feature Thread-Index: AQHWb+ajRo9nfLY8FE2W5PdyDMQ7iKk9XDHegAytaH0= Date: Wed, 26 Aug 2020 06:49:43 +0000 Message-ID: References: <20200623064104.1908-1-brbarkel@microsoft.com> <161DCDB779DB4B3C.30988@groups.io>,,<162C456ABCC01019.19371@groups.io> In-Reply-To: <162C456ABCC01019.19371@groups.io> Accept-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2020-08-18T05:11:14.6996961Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Privileged authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [174.21.132.206] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a4aa660d-e0d3-409b-437c-08d8498c3714 x-ms-traffictypediagnostic: CY4PR21MB0741: x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: l4rPwXA+a2QzrNoBwNUnpeoLbDuYgYFpvA4OZc8e61jz/Ak49zA9rN+/yMwhtiGnW8Q0XelWbO9/E0i1j/n8cwN8s30GvLFmAuwBhW3yJkVFMFkmQHbZHY/0yLs345TElf/DA2jpdDWBbIiVIU3Cm6adQToOONERkkhVV6X09tDjxdkOOquEVphz1YHtvrazz24kjypZ/ZJHQEuE6CJFUt5qa4Uf/fVpmedwGVK0NJmqnlaMvgbqLzSJMYcg3K+El0EaoCpfT4vMPJDLPfsDOlvgTvBOk0JjfbhZ1iFcK6Lazv8Vthee1YzGUEQp5LXDlqiGrBtoRBVBBaRc6WBlnPKUF3JGJUxJcs5A/Hz0uKqzem52YSHfE6+TLHxMh+pfz863O3O6/Rdb6khgTMkcYg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR21MB0743.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(366004)(376002)(39860400002)(136003)(346002)(110136005)(54906003)(478600001)(76116006)(6506007)(9686003)(91956017)(26005)(10290500003)(53546011)(5660300002)(66476007)(71200400001)(86362001)(30864003)(186003)(52536014)(55016002)(66556008)(66616009)(316002)(66446008)(64756008)(7696005)(66946007)(966005)(99936003)(8990500004)(166002)(2906002)(83380400001)(82960400001)(7416002)(76236003)(8676002)(33656002)(4326008)(82950400001)(8936002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: DDcC/eREuRA7DT5vgfvhu8xuO5hX8QyhPIFd907N+EoPCKITaCVltG7QnbUmYPqBzelbtTmEdd26VwcuC7l7wNYR0Stk/teNGEzz2c+iQHVyerGrEN+6mAr6g4YrkuwJbl727jVFj8y6dBlHAy20DCCllOWYj5uyP46Z+jOOWchgwn/2MvDlyOD0QslkUoRlPKJ9WXiTaX3Qsoba2r+xZKuyCyatIDh+/eTF+kuJ0XLhfR0/w/PFe6PH9qQtXn5kNS8SFnToyLIyeLJgmNRKJwiKE94s+QLdsuPD1/xIwsJyyT+p7Rj5PotjbJQ3j3QjRs4A158GbdVEziAQrGQT5i8P6zgijuuC0fx4auqQE24jBJIgA/HJx9DJEMECos7NwTdyciZJgr9ceYchuq/GwDFdFAnYirnrGj327HaK0iLF1NCTmJcHCW2hpWyr1yskG8x0flT96Khe0LLB929uQ47cfu5o9TF8DibS0J2xNzzzqDS/Kf4Pu4Ld0KKFqA9+JGyPuy+dYYXhiBArT1oyEQUwY+tBk6q4oDFS8iaQjWCKwBwhVchZWCgaJh8rsk/T1qpyPb2HiUcPTOKyC3zXejiKQhynlZIxm/vbDrf3V9yBUqTSmqdjmEFy6p2+LoN5AuvgH7NmZ71Vmku7Rn3jJg== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR21MB0743.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4aa660d-e0d3-409b-437c-08d8498c3714 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2020 06:49:43.9809 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WDAei0ua/JTIG8ANd6xeDPOJmDCGKEA32aLMxru0jVJiJJ2B3KKZsPMT37qABKsCI9FT+MOmXj7Va+SJaHA1ig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0741 X-Groupsio-MsgNum: 64634 Content-Language: en-US Content-Type: multipart/related; boundary="_004_CY4PR21MB07434D44789E23226D7883BBEF540CY4PR21MB0743namp_"; type="multipart/alternative" --_004_CY4PR21MB07434D44789E23226D7883BBEF540CY4PR21MB0743namp_ Content-Type: multipart/alternative; boundary="_000_CY4PR21MB07434D44789E23226D7883BBEF540CY4PR21MB0743namp_" --_000_CY4PR21MB07434D44789E23226D7883BBEF540CY4PR21MB0743namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Dandan, I=92ve addressed points 1-3 in this commit: https://github.com/corthon/edk2/tree/var_policy_dev_submission_v7 I=92ve also added a note to the new ReadMe about point #6: https://github.com/corthon/edk2/tree/var_policy_dev_submission_v7/MdeModul= ePkg/Library/VariablePolicyLib#disablevariablepolicy Will put up a v7 of patches this week. - Bret From: Bret Barkelew via groups.io Sent: Monday, August 17, 2020 10:24 PM To: devel@edk2.groups.io; dandan.bi@intel.com= ; bret@corthon.com Cc: Yao, Jiewen; Zhang, Chao B; Wang, Jian J; Wu, Hao A; liming.gao; Justen, J= ordan L; Laszlo Ersek; Ard Biesheuvel; Andrew Fish; Ni, Ray Subject: [EXTERNAL] Re: [edk2-devel] [PATCH v6 00/14] Add the VariablePoli= cy feature Responses below=85 - Bret From: Dandan Bi via groups.io Sent: Tuesday, August 11, 2020 6:52 AM To: devel@edk2.groups.io; Bi, Dandan; bret@corthon.com Cc: Yao, Jiewen; Zhang, Chao B; Wang, Jian J; Wu, Hao A; liming.gao; Justen, J= ordan L; Laszlo Ersek; Ard Biesheuvel; Andrew Fish; Ni, Ray Subject: [EXTERNAL] Re: [edk2-devel] [PATCH v6 00/14] Add the VariablePoli= cy feature Hi Bret, Sorry for the delayed response. Some more comments here: 1. Currently I see the LockVaribePolicy is called at ReadyToBoot by variab= le driver, could we update it to be called at EndOfDxe? We should prevent m= alicious code registering policy after EndOfDxe for security concern. And c= ould we also add the test case to check the variable policy is locked at En= dofDxe? We could. Right now it=92s at ReadyToBoot because it=92s just there as a s= afety net and the platform could lock it earlier. Would it work to have a P= CD for which EventGroup GUID the platform should lock on? 2. For patch 4, the SMM communication, some general guidelines for SMI ha= ndler: a) Check whether the communication buffer is outside SMM and valid. For this feature, please double check whether the communication buffer is = checked, if all the range in communication buffer has already been checked = within existing edk2 core infrastructure, please also add the comments in t= he code to mention that it has been checked. I checked this, but I will recheck (since there=92ve been a few revisions = in the patches) and update the comments. b) Should copy the communication buffer to SMRAM before checking the data = fields to avoid TOC/TOU attac For this feature, for example, when dump variable policy, if malicious cod= e updates the DumpParams->TotalSize in communication buffer to smaller one = to allocate the PaginationCache buffer, and then update it the correct one = and dump the variable policy data into the PaginationCache buffer, it will = cause buffer overflow in this case. So please double check the code and co= py the communication buffer into SMRAM to avoid such kind issue. Will also check for this. 3. Did you do any security test for this feature? Such as? There are both unit tests and integration tests to ensure correct= functionality and that the disable and lock interfaces work as expected. I= haven=92t fuzzed it or anything that involved. 4. Currently, LockVariablePolicy can prevent RegisterVariablePolicy and Di= sableVariablePolicy. So in SMI hander, could we check the variable policy i= s locked or not firstly and then decide whether need to check and execution= for VAR_CHECK_POLICY_COMMAND_REGISTER and VAR_CHECK_POLICY_COMMAND_DISABLE= ? I=92ll take a look, but my gut says this may be an unnecessary complicatio= n. 5. Since there is the logic when variable policy is disabled, it will perm= it deletion of auth/protected variables. Could we add some comments in code= to mention that variable policy should always be enabled for security conc= ern to avoid giving bad example? I=92m happy to think about how to document this, but I=92m not immediately= inclined to outright say it shouldn=92t be disabled. I=92d be happy to say= that it shouldn=92t be disabled in =93normal, production configuration=94,= but it=92s entirely reasonable to be disabled in a Manufacturing or R&R en= vironment and we would actually prefer this be used because it would at lea= st be consistent across platforms, rather than being something done ad hoc = by each platform that needs it. Would that be sufficient? Thanks, Dandan > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Dandan > Bi > Sent: Thursday, July 2, 2020 10:14 AM > To: devel@edk2.groups.io; bret@corthon.com > Cc: Yao, Jiewen ; Zhang, Chao B > ; Wang, Jian J ; Wu, Hao > A ; Gao, Liming ; Justen, > Jordan L ; Laszlo Ersek ; > Ard Biesheuvel ; Andrew Fish > ; Ni, Ray > Subject: Re: [edk2-devel] [PATCH v6 00/14] Add the VariablePolicy featur= e > > Hi Bret, > > Thanks for the contribution. > > I have taken an overview of this patch series and have some small commen= ts > in the related patches, please check in sub-patch. > > I will review the patch series more in details and bring more comments b= ack > if have. Do you have a branch for these patches in GitHub? Which should = be > easy for review. > > > Thanks, > Dandan > > > -----Original Message----- > > From: devel@edk2.groups.io On Behalf Of Bret > > Barkelew > > Sent: Tuesday, June 23, 2020 2:41 PM > > To: devel@edk2.groups.io > > Cc: Yao, Jiewen ; Zhang, Chao B > > ; Wang, Jian J ; Wu, > > Hao A ; Gao, Liming ; > > Justen, Jordan L ; Laszlo Ersek > > ; Ard Biesheuvel ; > Andrew > > Fish ; Ni, Ray > > Subject: [edk2-devel] [PATCH v6 00/14] Add the VariablePolicy feature > > > > REF:https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%= 2Fbugzilla.tianocore.org%2Fshow_bug.cgi%3Fid%3D2522&data=3D02%7C01%7CBr= et.Barkelew%40microsoft.com%7C91eed7c4a0d54e2eff6008d83dfdc4ec%7C72f988bf86= f141af91ab2d7cd011db47%7C1%7C0%7C637327507431539442&sdata=3DcLpx7VZsG%2= F6r6GCXmiCS4DmmgOH4iKfX3VSAAYUOU00%3D&reserved=3D0 > > > > 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 > > libraries, 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 dir= ectly to > them. > > > > Platform porting instructions are described in this wiki entry: > > https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgi= thub.com%2Ftianocore%2Ftianocore.github.io%2Fwiki%2FVariablePolicy-&dat= a=3D02%7C01%7CBret.Barkelew%40microsoft.com%7C91eed7c4a0d54e2eff6008d83dfdc= 4ec%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637327507431539442&sda= ta=3D%2FYNgK7yixA5Gi7E9bHw3LIUNAQpZMh9ykTUqCqv2SRY%3D&reserved=3D0 > > Protocol---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://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fed= k2.groups.io%2Fg%2Fdevel%2Fmessage%2F53712&data=3D02%7C01%7CBret.Barkel= ew%40microsoft.com%7C91eed7c4a0d54e2eff6008d83dfdc4ec%7C72f988bf86f141af91a= b2d7cd011db47%7C1%7C0%7C637327507431539442&sdata=3Di7qaO6eZT8%2BzCT0sat= TptMWwCNspDz%2BS05eJmGGR628%3D&reserved=3D0 > > (the code branches shared in that discussion are now out of date, but > > the whitepapers and discussion are relevant). > > > > Cc: Jiewen Yao > > 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 > > > > v6 changes: > > * Fix an issue with uninitialized Status in InitVariablePolicyLib() > > and > > DeinitVariablePolicyLib() > > * 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 > > platforms > > * 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 > > variables > > > > 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 > > gVariablePolicyProtocolGuid > > 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 (14): > > 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 variabl= es > > SecurityPkg: Allow VariablePolicy state to delete authenticated > > variables > > MdeModulePkg: Change TCG MOR variables to use VariablePolicy > > MdeModulePkg: Drop VarLock from RuntimeDxe variable driver > > MdeModulePkg: Add a shell-based functional test for VariablePolicy > > > > MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.c > > | 320 +++ > > > > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.c > > | 396 ++++ > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitNull.c > > | 46 + > > > > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitRuntimeDx > > e.c | 85 + > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c > > | 816 +++++++ > > > > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/VariablePo > > licyUnitTest.c | 2440 ++++++++++++++++++++ > > > > > MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/VariablePolicyFu > > ncTestApp.c | 1978 ++++++++++++++++ > > 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 > > | 53 + > > > > > MdeModulePkg/Universal/Variable/RuntimeDxe/VariableLockRequstToLock > > .c | 71 + > > MdeModulePkg/Universal/Variable/RuntimeDxe/VariablePolicySmmDxe.c > > | 642 +++++ > > > > > MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe. > > c | 14 + > > SecurityPkg/Library/AuthVariableLib/AuthService.c = | > 22 > > +- > > 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.i > > nf > > | 35 + > > > > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.u > > ni > > | 12 + > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf > > | 44 + > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.uni > > | 12 + > > > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf > > | 51 + > > > > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/VariablePo > > licyUnitTest.inf | 40 + > > MdeModulePkg/MdeModulePkg.ci.yaml = | 4 > +- > > MdeModulePkg/MdeModulePkg.dec = | 26 +- > > MdeModulePkg/MdeModulePkg.dsc = | 15 + > > MdeModulePkg/MdeModulePkg.uni = | 7 + > > MdeModulePkg/Test/MdeModulePkgHostTest.dsc > | > > 11 + > > MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/Readme.md > > | 55 + > > > > > MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/VariablePolicyFu > > ncTestApp.inf | 42 + > > MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf > > | 5 + > > MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf > > | 4 + > > > > > MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.i > > nf | 10 + > > > > > 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 + > > 47 files changed, 8015 insertions(+), 78 deletions(-) create mode > > 100644 MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.c > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.c > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitNull.c > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitRuntimeD > > x > > e.c > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/Variable > > Po > > licyUnitTest.c > > create mode 100644 > > > MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/VariablePolicyFu > > ncTestApp.c > > create mode 100644 > > > MdeModulePkg/Universal/Variable/RuntimeDxe/VariableLockRequstToLock > > .c > > create mode 100644 > > MdeModulePkg/Universal/Variable/RuntimeDxe/VariablePolicySmmDxe.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/VarCheckPolicyLib.inf > > create mode 100644 > > MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.uni > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.i > > nf > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.u > > ni > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.uni > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf > > create mode 100644 > > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/Variable > > Po > > licyUnitTest.inf > > create mode 100644 > > MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/Readme.md > > create mode 100644 > > > MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/VariablePolicyFu > > ncTestApp.inf > > > > -- > > 2.26.2.windows.1.8.g01c50adf56.20200515075929 > > > > > > > > > --_000_CY4PR21MB07434D44789E23226D7883BBEF540CY4PR21MB0743namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Dandan,

 

I=92ve addressed points 1-3 in this commit:

https://github.com/corthon/edk2/tree/var_policy_= dev_submission_v7

 

I=92ve also added a note to the new ReadMe about po= int #6:

https://github.com/corthon/edk2/tree/var_policy_dev_submission= _v7/MdeModulePkg/Library/VariablePolicyLib#disablevariablepolicy

 

Will put up a v7 of patches this week.

 

- Bret

 

From: Bret Barkelew via gr= oups.io
Sent: Monday, August 17, 2020 10:24 PM
To: devel@edk2.groups.io; dandan.bi@intel.com; bret@corthon.= com
Cc: Yao, Jiewen; Zhang, Chao B; Wang, Jian J; Wu, Hao A; liming.gao; Justen, Jordan L; Laszlo Ersek; Ard Biesheuvel; Andrew Fish; Ni, Ray
Subject: [EXTERNAL] Re: [edk2-devel] [PATCH v6 00/14] Add the Varia= blePolicy feature

 

Responses below=85=

 

- Bret

 

From: Dandan Bi via groups.io
Sent: Tuesday, August 11, 2020 6:52 AM
To: devel@edk2.groups.io; Bi, Dandan; bret@corthon.com Cc: Yao, Jiewen; Zhang, Chao B; Wang, Jian J; Wu, Hao A; liming.gao; Justen, Jordan L; Laszlo Ersek; Ard Biesheuvel; Andrew Fish; Ni, Ray
Subject: [EXTERNAL] Re: [edk2-devel] [PATCH v6 00/14] Add the Varia= blePolicy feature

 

Hi Bret,

Sorry for the delayed response.

Some more comments here:

1. Currently I see the LockVaribePolicy is called at ReadyToBoot by variab= le driver, could we update it to be called at EndOfDxe? We should prevent m= alicious code registering policy after EndOfDxe for security concern. And c= ould we also add the test case to check the variable policy is locked at EndofDxe?

We could. Right now it=92s at ReadyToBoot because it=92s just there a= s a safety net and the platform could lock it earlier. Would it work to hav= e a PCD for which EventGroup GUID the platform should lock on?

2. For patch 4, the SMM communication,  some general guidelines for S= MI handler:
a)  Check whether the communication buffer is outside SMM and valid.<= br> For this feature, please double check whether the communication buffer is = checked, if all the range in communication buffer has already been checked = within existing edk2 core infrastructure, please also add the comments in t= he code to mention that it has been checked.

I checked this, but I will recheck (since there=92ve been a few revis= ions in the patches) and update the comments.

b) Should copy the communication buffer to SMRAM before checking the data = fields to avoid TOC/TOU attac
For this feature, for example, when dump variable policy, if malicious cod= e updates the DumpParams->TotalSize in communication buffer to smaller o= ne to allocate the PaginationCache buffer, and then update it the correct o= ne and dump the variable policy data into the PaginationCache buffer, it will cause buffer overflow in this ca= se.  So please double check the code and copy the communication buffer= into SMRAM to avoid such kind issue.

Will also check for this.

3. Did you do any security test for this feature?

Such as? There are both unit tests and integration tests to ensure co= rrect functionality and that the disable and lock interfaces work as expect= ed. I haven=92t fuzzed it or anything that involved.

4. Currently, LockVariablePolicy can prevent RegisterVariablePolicy and Di= sableVariablePolicy. So in SMI hander, could we check the variable policy i= s locked or not firstly and then decide whether need to check and execution= for VAR_CHECK_POLICY_COMMAND_REGISTER and VAR_CHECK_POLICY_COMMAND_DISABLE?

I=92ll take a look, but my gut says this may be an unnecessary compli= cation.

5. Since there is the logic when variable policy is disabled, it will perm= it deletion of auth/protected variables. Could we add some comments in code= to mention that variable policy should always be enabled for security conc= ern to avoid giving bad example?

I=92m happy to think about how to document this, but I=92m not immedi= ately inclined to outright say it shouldn=92t be disabled. I=92d be happy t= o say that it shouldn=92t be disabled in =93normal, production configuration=94, but it=92s entirely reasonable to be disable= d in a Manufacturing or R&R environment and we would actually prefer th= is be used because it would at least be consistent across platforms, rather= than being something done ad hoc by each platform that needs it. Would that be sufficient?

Thanks,
Dandan
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of = Dandan
> Bi
> Sent: Thursday, July 2, 2020 10:14 AM
> To: devel@edk2.groups.io; bret@corthon.com
> Cc: Yao, Jiewen <jiewen.yao@intel.com>; Zhang, Chao B
> <chao.b.zhang@intel.com>; Wang, Jian J <jian.j.wang@intel.co= m>; Wu, Hao
> A <hao.a.wu@intel.com>; Gao, Liming <liming.gao@intel.com>= ;; Justen,
> Jordan L <jordan.l.justen@intel.com>; Laszlo Ersek <lersek@r= edhat.com>;
> Ard Biesheuvel <ard.biesheuvel@arm.com>; Andrew Fish
> <afish@apple.com>; Ni, Ray <ray.ni@intel.com>
> Subject: Re: [edk2-devel] [PATCH v6 00/14] Add the VariablePolicy fea= ture
>
> Hi Bret,
>
> Thanks for the contribution.
>
> I have taken an overview of this patch series and have some small com= ments
> in the related patches, please check in sub-patch.
>
> I will review the patch series more in details and bring more comment= s back
> if have. Do you have a branch for these patches in GitHub? Which shou= ld be
> easy for review.
>
>
> Thanks,
> Dandan
>
> > -----Original Message-----
> > From: devel@edk2.groups.io <devel@edk2.groups.io> On Behal= f Of Bret
> > Barkelew
> > Sent: Tuesday, June 23, 2020 2:41 PM
> > To: devel@edk2.groups.io
> > Cc: Yao, Jiewen <jiewen.yao@intel.com>; Zhang, Chao B
> > <chao.b.zhang@intel.com>; Wang, Jian J <jian.j.wang@int= el.com>; Wu,
> > Hao A <hao.a.wu@intel.com>; Gao, Liming <liming.gao@int= el.com>;
> > Justen, Jordan L <jordan.l.justen@intel.com>; Laszlo Ersek=
> > <lersek@redhat.com>; Ard Biesheuvel <ard.biesheuvel@arm= .com>;
> Andrew
> > Fish <afish@apple.com>; Ni, Ray <ray.ni@intel.com> > > Subject: [edk2-devel] [PATCH v6 00/14] Add the VariablePolicy fe= ature
> >
> > REF:https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%= 3A%2F%2Fbugzilla.tianocore.org%2Fshow_bug.cgi%3Fid%3D2522&amp;data=3D02= %7C01%7CBret.Barkelew%40microsoft.com%7C91eed7c4a0d54e2eff6008d83dfdc4ec%7C= 72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637327507431539442&amp;sdata= = =3DcLpx7VZsG%2F6r6GCXmiCS4DmmgOH4iKfX3VSAAYUOU00%3D&amp;reserved=3D0 > >
> > 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 a= nd
> > protocols into Variable Services.
> >
> > Since the integration requires multiple changes, including addin= g
> > libraries, a protocol, an SMI communication handler, and
> > VariableServices integration, the patches are broken up by indiv= idual
> > library additions and then a final integration. Security-sensiti= ve
> > changes like bypassing Authenticated Variable enforcement are al= so
> > broken out into individual patches so that attention can be call= ed directly to
> them.
> >
> > Platform porting instructions are described in this wiki entry:<= br> > > https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithub= .com%2Ftianocore%2Ftianocore.github.io%2Fwiki%2FVariablePolicy-&amp;dat= a=3D02%7C01%7CBret.Barkelew%40microsoft.com%7C91eed7c4a0d54e2eff6008d83dfdc= 4ec%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637327507431539442&amp= ;sdata=3D%2FYNgK7yixA5Gi7E9bHw3LIUNAQpZMh9ykTUqCqv2SRY%3D&amp;reserved= =3D0
> > Protocol---Enhanced-Method-for-Managing-Variables#platform-porti= ng
> >
> > Discussion of the feature can be found in multiple places throug= hout
> > the last year on the RFC channel, staging branches, and in devel= .
> >
> > Most recently, this subject was discussed in this thread:
> > https://nam06.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fedk2.g= roups.io%2Fg%2Fdevel%2Fmessage%2F53712&amp;data=3D02%7C01%7CBret.Barkel= ew%40microsoft.com%7C91eed7c4a0d54e2eff6008d83dfdc4ec%7C72f988bf86f141af91a= b2d7cd011db47%7C1%7C0%7C637327507431539442&amp;sdata=3Di7qaO6eZT8%2BzCT= 0satTptMWwCNspDz%2BS05eJmGGR628%3D&amp;reserved=3D0
> > (the code branches shared in that discussion are now out of date= , but
> > the whitepapers and discussion are relevant).
> >
> > Cc: Jiewen Yao <jiewen.yao@intel.com>
> > Cc: Chao Zhang <chao.b.zhang@intel.com>
> > Cc: Jian J Wang <jian.j.wang@intel.com>
> > Cc: Hao A Wu <hao.a.wu@intel.com>
> > Cc: Liming Gao <liming.gao@intel.com>
> > Cc: Jordan Justen <jordan.l.justen@intel.com>
> > Cc: Laszlo Ersek <lersek@redhat.com>
> > Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
> > Cc: Andrew Fish <afish@apple.com>
> > Cc: Ray Ni <ray.ni@intel.com>
> > Cc: Bret Barkelew <brbarkel@microsoft.com>
> > Signed-off-by: Bret Barkelew <brbarkel@microsoft.com>
> >
> > v6 changes:
> > * Fix an issue with uninitialized Status in InitVariablePolicyLi= b()
> > and
> > DeinitVariablePolicyLib()
> > * 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 f= rom
> > platforms
> > * 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 consu= me
> > variables
> >
> > 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
> > gVariablePolicyProtocolGuid
> >   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 (14):
> >   MdeModulePkg: Define the VariablePolicy protocol int= erface
> >   MdeModulePkg: Define the VariablePolicyLib
> >   MdeModulePkg: Define the VariablePolicyHelperLib
> >   MdeModulePkg: Define the VarCheckPolicyLib and SMM i= nterface
> >   OvmfPkg: Add VariablePolicy engine to OvmfPkg platfo= rm
> >   EmulatorPkg: Add VariablePolicy engine to EmulatorPk= g platform
> >   ArmVirtPkg: Add VariablePolicy engine to ArmVirtPkg = platform
> >   UefiPayloadPkg: Add VariablePolicy engine to UefiPay= loadPkg platform
> >   MdeModulePkg: Connect VariablePolicy business logic = to
> >     VariableServices
> >   MdeModulePkg: Allow VariablePolicy state to delete p= rotected variables
> >   SecurityPkg: Allow VariablePolicy state to delete au= thenticated
> >     variables
> >   MdeModulePkg: Change TCG MOR variables to use Variab= lePolicy
> >   MdeModulePkg: Drop VarLock from RuntimeDxe variable = driver
> >   MdeModulePkg: Add a shell-based functional test for = VariablePolicy
> >
> >  MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.c=
> > |  320 +++
> >
> > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelpe= rLib.c
> > |  396 ++++
> >  MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtra= InitNull.c
> > |   46 +
> >
> >
> MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitRuntime= Dx
> > e.c          &= nbsp;    |   85 +
> >  MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c=
> > |  816 +++++++
> >
> >
> MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/Variabl= ePo
> > licyUnitTest.c   | 2440 ++++++++++++++++++++
> >
> >
> MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/VariablePolicyF= u
> > ncTestApp.c        | 1978 +++= +++++++++++++
> >  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 > > |   53 +
> >
> >
> MdeModulePkg/Universal/Variable/RuntimeDxe/VariableLockRequstToLock > > .c          &n= bsp;         |   71 +
> >  MdeModulePkg/Universal/Variable/RuntimeDxe/VariablePolicyS= mmDxe.c
> > |  642 +++++
> >
> >
> MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.
> > c          &nb= sp;            |&nbs= p;  14 +
> >  SecurityPkg/Library/AuthVariableLib/AuthService.c &nb= sp;            =             &nb= sp;            = |
> 22
> > +-
> >  ArmVirtPkg/ArmVirt.dsc.inc     &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;       |    4 +
> >  EmulatorPkg/EmulatorPkg.dsc     &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;      |    3 +
> >  MdeModulePkg/Include/Guid/VarCheckPolicyMmi.h
> |
> > 54 +
> >  MdeModulePkg/Include/Library/VariablePolicyHelperLib.h
> > |  164 ++
> >  MdeModulePkg/Include/Library/VariablePolicyLib.h &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp; |
> > 207 ++
> >  MdeModulePkg/Include/Protocol/VariablePolicy.h  =             &nb= sp;            =             &nb= sp;   |
> > 157 ++
> >  MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.i= nf
> > |   42 +
> >  MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.u= ni
> > |   12 +
> >
> > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelpe= rLib.i
> > nf
> > |   35 +
> >
> > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelpe= rLib.u
> > ni
> > |   12 +
> >  MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.i= nf
> > |   44 +
> >  MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.u= ni
> > |   12 +
> >
> > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeD= xe.inf
> > |   51 +
> >
> >
> MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/Variabl= ePo
> > licyUnitTest.inf |   40 +
> >  MdeModulePkg/MdeModulePkg.ci.yaml    &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp; |    4
> +-
> >  MdeModulePkg/MdeModulePkg.dec     = ;            &n= bsp;            = ;            &n= bsp;            = ;     |   26 +-
> >  MdeModulePkg/MdeModulePkg.dsc     = ;            &n= bsp;            = ;            &n= bsp;            = ;     |   15 +
> >  MdeModulePkg/MdeModulePkg.uni     = ;            &n= bsp;            = ;            &n= bsp;            = ;     |    7 +
> >  MdeModulePkg/Test/MdeModulePkgHostTest.dsc
> |
> > 11 +
> >  MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/Read= me.md
> > |   55 +
> >
> >
> MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/VariablePolicyF= u
> > ncTestApp.inf      |   42 + > >  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntime= Dxe.inf
> > |    5 +
> >  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf=
> > |    4 +
> >
> >
> MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.i > > nf          &n= bsp;          |   10= +
> >
> >
> MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf > > |    4 +
> >  OvmfPkg/OvmfPkgIa32.dsc      = ;            &n= bsp;            = ;            &n= bsp;            = ;          |   = 5 +
> >  OvmfPkg/OvmfPkgIa32X64.dsc     &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;       |    5 +
> >  OvmfPkg/OvmfPkgX64.dsc      =             &nb= sp;            =             &nb= sp;            =            |  &= nbsp; 5 +
> >  OvmfPkg/OvmfXen.dsc      &nb= sp;            =             &nb= sp;            =             &nb= sp;            = |    4 +
> >  SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf&nb= sp;            =             &nb= sp;        |
> > 2 +
> >  UefiPayloadPkg/UefiPayloadPkgIa32.dsc   &nb= sp;            =             &nb= sp;            =            |  &= nbsp; 4 +
> >  UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc   =             &nb= sp;            =             &nb= sp;        |    4 +
> >  47 files changed, 8015 insertions(+), 78 deletions(-) = ; create mode
> > 100644 MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.= c
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelpe= rLib.c
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitNu= ll.c
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyExtraInitRu= ntimeD
> > x
> > e.c
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.c
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/Va= riable
> > Po
> > licyUnitTest.c
> >  create mode 100644
> >
> MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/VariablePolicyF= u
> > ncTestApp.c
> >  create mode 100644
> >
> MdeModulePkg/Universal/Variable/RuntimeDxe/VariableLockRequstToLock > > .c
> >  create mode 100644
> > MdeModulePkg/Universal/Variable/RuntimeDxe/VariablePolicySmmDxe.= c
> >  create mode 100644 MdeModulePkg/Include/Guid/VarCheckPolic= yMmi.h
> >  create mode 100644
> > MdeModulePkg/Include/Library/VariablePolicyHelperLib.h
> >  create mode 100644 MdeModulePkg/Include/Library/VariablePo= licyLib.h
> >  create mode 100644 MdeModulePkg/Include/Protocol/VariableP= olicy.h
> >  create mode 100644
> > MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
> >  create mode 100644
> > MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.uni
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelpe= rLib.i
> > nf
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelpe= rLib.u
> > ni
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.uni
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeD= xe.inf
> >  create mode 100644
> > MdeModulePkg/Library/VariablePolicyLib/VariablePolicyUnitTest/Va= riable
> > Po
> > licyUnitTest.inf
> >  create mode 100644
> > MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/Readme.md<= br> > >  create mode 100644
> >
> MdeModulePkg/Test/ShellTest/VariablePolicyFuncTestApp/VariablePolicyF= u
> > ncTestApp.inf
> >
> > --
> > 2.26.2.windows.1.8.g01c50adf56.20200515075929
> >
> >
> >
>
>
>

 

 

--_000_CY4PR21MB07434D44789E23226D7883BBEF540CY4PR21MB0743namp_-- --_004_CY4PR21MB07434D44789E23226D7883BBEF540CY4PR21MB0743namp_ Content-Type: image/png; name="BCB12B7394CE43AF8F019622CD7591E5.png" Content-Description: BCB12B7394CE43AF8F019622CD7591E5.png Content-Disposition: inline; filename="BCB12B7394CE43AF8F019622CD7591E5.png"; size=140; creation-date="Wed, 26 Aug 2020 06:49:42 GMT"; modification-date="Wed, 26 Aug 2020 06:49:42 GMT" Content-ID: Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAsQAAAABCAYAAADZ77itAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAhSURBVEhL7cMBDQAACAMg+5cygQkeRoMIG9WT VVXVn7MHYi5moJeByLMAAAAASUVORK5CYII= --_004_CY4PR21MB07434D44789E23226D7883BBEF540CY4PR21MB0743namp_--