]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Variable/RuntimeDxe: permit MorLock deletion for passthru req
authorLaszlo Ersek <lersek@redhat.com>
Sat, 30 Sep 2017 17:08:41 +0000 (19:08 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Tue, 10 Oct 2017 09:25:23 +0000 (11:25 +0200)
commite3531164cc008571de1da7fc2fb9005f9d89849d
tree4caec4fb66d2a189595a40ed24cba7df1c98bd0d
parentf1304280435fa3385f1d52f37ac4a562e16f8c89
MdeModulePkg/Variable/RuntimeDxe: permit MorLock deletion for passthru req

The SetMorLockVariable() function sets "mMorLockPassThru" to TRUE
temporarily, so that it can set the MOR Control Lock variable to
well-formed values without permission checks.

In the next patch, we'll need the same override for deleting the MOR
Control Lock variable; hence obey "mMorLockPassThru" in the deletion
branch of SetVariableCheckHandlerMorLock() as well.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Ladi Prosek <lprosek@redhat.com>
Cc: Star Zeng <star.zeng@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Tested-by: Ladi Prosek <lprosek@redhat.com>
MdeModulePkg/Universal/Variable/RuntimeDxe/TcgMorLockSmm.c