Skip to content

Support blocking nested kext plugins by Bundle ID / exact path#16

Closed
YBronst wants to merge 2 commits intofix-kexts-to-blockfrom
ri4xak-codex/add-support-for-blocking-nested-kext-plugins
Closed

Support blocking nested kext plugins by Bundle ID / exact path#16
YBronst wants to merge 2 commits intofix-kexts-to-blockfrom
ri4xak-codex/add-support-for-blocking-nested-kext-plugins

Conversation

@YBronst
Copy link
Owner

@YBronst YBronst commented Feb 7, 2026

Motivation

  • Allow blocking of nested kext plugins (kexts inside other kexts) by Bundle ID or exact path because existing OpenCore/Clover bridging only matched top-level .kext paths and missed plugins such as IONetworkingFamily.kext/.../AppleEthernetRL.kext.
  • Implement the resolution on the loader side since OpenCore itself does not index nested kext bundle identifiers.
  • Limit recursion depth to a safe default (2) to satisfy current requirements while keeping the logic extensible.

Description

  • Add depth-limited bundle-id scanning utilities and caching in rEFIt_UEFI/refit/main.cpp, introducing MAX_BUNDLE_ID_INDEX_DEPTH = 2 and KEXT_BLOCK_PATH_RESOLUTION to cache results.
  • Implement NormalizeKextBundlePath, ReadKextBundleIdentifier, ResolveBundlePathInDirectory, ResolveKextBundlePath, and GetSystemKextRoot to locate a kext by its CFBundleIdentifier under \System\Library\Extensions and \Library\Extensions, including searching Contents/PlugIns and Contents/Plugins up to configured depth.
  • Add ResolveKextBlockIdentifier that returns normalized exact bundle path for .kext entries and resolves bundle IDs to paths where possible, storing unresolved IDs in cache to avoid repeated scans.
  • Integrate resolver into OpenCore Kernel.Block assignment so entries in KextsToBlock use resolved paths (or fall back to the original name) when building mOpenCoreConfiguration.Kernel.Block.

Testing

  • Automated tests: none were run for this change.

Codex Task

@YBronst YBronst closed this Feb 7, 2026
@YBronst YBronst deleted the ri4xak-codex/add-support-for-blocking-nested-kext-plugins branch February 7, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant