audk/MdeModulePkg
Laszlo Ersek 704b71d7e1 MdeModulePkg/Variable/RuntimeDxe: delete & lock MOR in the absence of SMM
VariableRuntimeDxe deletes and locks the MorLock variable in
MorLockInit(), with the argument that any protection provided by MorLock
can be circumvented if MorLock can be overwritten by unprivileged code
(i.e., outside of SMM).

Extend the argument and the logic to the MOR variable, which is supposed
to be protected by MorLock. Pass Attributes=0 when deleting MorLock and
MOR both.

This change was suggested by Star; it is inspired by earlier VariableSmm
commit fda8f631ed ("MdeModulePkg/Variable/RuntimeDxe: delete and lock
OS-created MOR variable", 2017-10-03).

Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Suggested-by: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2017-10-25 14:06:15 +02:00
..
Application MdeModulePkg CapsuleApp: Fix print info in BuildGatherList() 2017-07-03 17:53:16 +08:00
Bus MdeModulePkg/PciBus: Fix bug that PCI BUS claims too much resource 2017-10-23 15:50:55 +08:00
Core MdeModulePkg/DxeIplPeim: Refine coding style in function comments 2017-10-24 09:14:17 +08:00
Include MdeModulePkg/SmmEndOfS3Resume.h: Add new protocol definition. 2017-10-12 10:17:46 +08:00
Library MdeModulePkg/Bds: Check variable name even *if* OptionNumber is NULL 2017-10-12 10:00:48 +08:00
Logo MdeModulePkg/LogoDxe: Return error if HII Package not present 2017-05-22 16:30:11 -07:00
Universal MdeModulePkg/Variable/RuntimeDxe: delete & lock MOR in the absence of SMM 2017-10-25 14:06:15 +02:00
MdeModulePkg.dec MdeModulePkg/SmmEndOfS3Resume.h: Add new protocol definition. 2017-10-12 10:17:46 +08:00
MdeModulePkg.dsc MdeModulePkg: Add UdfDxe to the dsc file 2017-09-13 18:24:40 +08:00
MdeModulePkg.uni MdeModulePkg/MdeModulePkg.dec,.uni: Add NULL pointer detection PCD 2017-10-11 16:39:00 +08:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00