macoskernel-extensionxnu

Is it feasible to write a macOS kernel-extension for Ventura?


I am planning to write a kernel extension for macOS Ventura to control sleep mode during some states that are not fully available from user land, such as lid-closing, power source change, etc. Also more control of the external displays.

There's a lot of old tutorials on the subject of writing kernel extensions for macOS, but only a few recent sources that claim that Apple had started to be very strict with kernel extensions.

So I'm wondering, what shall one do to load a kernel extension on Ventura? And is it even possible without changing the boot loader?


Solution

  • You have 3 main obstacles:

    So, it's definitely possible to develop a new kext in 2023, but you really need a good reason to do so and convince both Apple and your users that they should trust you.