mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcBootManagementLib: Do not let BootNext override arguments
Change this after security model analysis.
This commit is contained in:
parent
f8f3212432
commit
06b3ee2641
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user