diff options
author | Laszlo Ersek <lersek@redhat.com> | 2017-10-10 13:44:16 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-10-25 14:06:15 +0200 |
commit | 704b71d7e11f115a3b5b03471d6420a7a70f1585 (patch) | |
tree | 56df1400f0869e8e6c3fcbc7257d2a24d393aa7f /ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c | |
parent | 6161123be237719069973836c6f58f625c95f6b7 (diff) | |
download | edk2-704b71d7e11f115a3b5b03471d6420a7a70f1585.tar.gz edk2-704b71d7e11f115a3b5b03471d6420a7a70f1585.tar.bz2 edk2-704b71d7e11f115a3b5b03471d6420a7a70f1585.zip |
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 fda8f631edbb ("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>
Diffstat (limited to 'ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.c')
0 files changed, 0 insertions, 0 deletions