Notification of Software Update in Progress

Hello,


I'm developing a kext and would like to have it turn off parts of its feature set if macOS is doing a software update. I had thought the kext would be unloaded but apparently they're not, so I was wondering if there's an event, or some other signal that I could watch for to know when a software update is about to start. Thanks.

Replies

I was wondering if there's an event, or some other signal that I could watch for to know when a software update is about to start.

There’s no supported API for this.

I'm developing a kext and would like to have it turn off parts of its feature set if macOS is doing a software update.

Hmmm, that seems like an odd approach. What does your KEXT do that needs to be turned off in this context?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

it hooks MAC policy to prevent unauthorized modifications to certain files... so far it works fine with a software update, but am trying to avoid [user doing something dumb] ever causing a problem.

it hooks MAC policy to prevent unauthorized modifications to certain files …

You’re aware that the MAC KPI is not public, right?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Yet many kernel devs are using it