27 Commits

Author SHA1 Message Date
Mike Beaton
7e39fedf18 OcBootManagementLib: Revert changes to fat slice secure boot logic from 125d8e8df36bd7ca12085d9670dca9060cf49c76
Note: EFI_SUCCESS does not always mean a signature was found and
verified (which never existed and therefore is not expected to
happen, for a fat slice), but simply that no further verification
of SB status is required and OC image loader should be used.

Resolves: https://github.com/acidanthera/bugtracker/issues/2414
2024-07-08 17:20:34 +01:00
MikhailKrichanov
0a62573bea
Library: Fixed UEFI_IMAGE_SOURCE semantics. (#508) 2023-12-04 07:49:48 +03:00
Mikhail Krichanov
c65fb5bbfd Library: Fixed ImageOrigin types. 2023-11-24 09:42:11 +03:00
Mikhail Krichanov
43c4931957 User: Defined PcdImageProtectionPolicy for ImageTool in audk, adopted new API. 2023-11-23 14:04:16 +03:00
Mike Beaton
11c45d89d9 OcBootManagementLib: In order to detect files such as signed apfs.efi,
test for sutiability for fixup for all loaded images, not just boot image
2023-11-19 14:43:56 +00:00
Mike Beaton
d1e1fe7cd2 OcBootManagementLib: Trigger FixupAppleEfiImages quirk on default Apple boot path as well
- Allows for very early Mac OS X 32-bit images which are neither signed nor in a fat binary
2023-11-18 19:46:14 +00:00
Mike Beaton
125d8e8df3
OcBootManagementLib: Store ImageLoaderCaps in protocol (#504) 2023-11-18 19:42:20 +00:00
Mike Beaton
9d05c7f5ae OpenDuet/OcBootManagementLib: Disable W^X auto-fix in Duet, and move fix for all Apple images to FixupAppleEfiImages quirk
Duet then matches behaviour of OVMF, and quirk can be used in both Duet and OVMF to load legacy Apple images.
2023-11-08 07:21:40 +00:00
Mike Beaton
5f15e839f8
OcPeCoffExtLib: Add support for FixupAppleEfiImages quirk (#498) 2023-11-03 11:06:56 +03:00
Mike Beaton
7f08cc7c22
OcBootManagementLib: Add missing explicit initialisation of mImageLoaderCaps in OcImageLoaderLoad (#496)
Fix mentioned in changelog incorporates this and the previous commit
2023-10-30 12:30:52 +03:00
Mike Beaton
c6060b25bb OcBootManagementLib: Add guard for static mImageLoaderCaps 2023-10-29 14:34:49 +00:00
Mikhail Krichanov
5afed6eb16 Build: Fixed compilation after adding UE draft into AUDK master. 2023-07-20 10:20:16 +03:00
Savva Mitrofanov
70bb87c7b0 Library: Replace OcPeCoffLib with UefiImageLib 2023-04-26 11:01:50 +03:00
Savva Mitrofanov
b2d438d6f3 Switch OcGuardLib to BaseOverflowLib 2023-04-13 13:16:14 +06:00
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
vit9696
07f0091f95 OcBootManagementLib: Improved robustness in PE image file parsing 2022-02-04 03:53:54 +03:00
mikebeaton
8069ce4f9d OcBootManagementLib: Extend ProtectUefiServices quirk to restore hooks overwritten by GRUB2 shim as required 2021-11-28 19:44:41 +00:00
dakanji
dee3ff5ef5
OcFileLib: Standardise Function Names (#287) 2021-08-31 10:33:34 +03:00
Marvin Häuser
85036254d0 OcMiscLib: Fix potential overflow in ApplyPatch() 2021-02-14 13:41:48 +01:00
Vitaly Cheptsov
f1eeae455f
OcPeCoffExtLib: Use OcPeCoffLib for image verification (#186)
REF: https://github.com/mhaeuser/ISPRASOpen-SecurePE
closes acidanthera/bugtracker#1273
2021-02-01 19:32:54 +03:00
vit9696
77808cc2de OcAfterBootCompatLib: Fix macOS version detection
macOS 10.11 has Mac OS X in the first half.
macOS 11.0 has macOS in the first half.
Kill the error-prone optimisation for the time being
2020-12-01 15:21:19 +03:00
dakanji
d9cc30567c
Library: Firmware pluralisation fixes in the code (#136) 2020-10-13 01:42:59 +03:00
vit9696
b5c74d3e62 OcBootManagementLib: Add some callback stubs for image loader 2020-08-29 10:45:17 +03:00
vit9696
0c2e97748d OcBootManagementLib: Implement EfiBoot kernel capability detection 2020-08-29 07:01:08 +03:00
Download-Fritz
a97b74e83c
OpenCore: Use direct PE loading for Secure Boot (#108)
Implement and integrate a PE image loader to circumvent UEFI Secure Boot when Apple Secure Boot is used.
2020-08-24 12:52:34 +02:00
vit9696
baa6e8de34 OcBootManagementLib: Add AppleSecureBoot support on EFI files 2020-08-20 22:28:08 +03:00
vit9696
40f81f29f7 OcBootManagementLib: Implement FAT image loading 2020-08-17 01:43:19 +03:00