OcBootManagementLib: Do not let BootNext override arguments

Change this after security model analysis.
This commit is contained in:
vit9696 2019-09-06 23:43:11 +03:00 committed by GitHub
parent f8f3212432
commit 06b3ee2641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -664,6 +664,7 @@ InternalGetDefaultBootEntry (
}
if (BootEntry != NULL) {
#if 0
if (IsBootNext) {
//
// BootNext is allowed to override both the exact file path as well as
@ -675,6 +676,9 @@ InternalGetDefaultBootEntry (
} else if (OptionalData != NULL) {
FreePool (OptionalData);
}
#else
FreePool (OptionalData);
#endif
if (BootEntry->DevicePath != UefiDevicePath) {
if (!IsAppleLegacy) {