Result of system extension activation

Hello. After submitting OSSystemExtensionRequest, we receive request: didFinishWithResult: result call and everything is fine, if the user allows the extension. The result will be OSSystemExtensionRequestCompleted. However, if the user has more extensions to allow and the user simply clicks OK button without selecting any extension in System preferences dialogue, we still receive OSSystemExtensionRequestCompleted.

Is this a bug? Or is there some other way of detecting if the user allowed our sext (we are using network extension)

Thank you, Jakub

edit: This might happen only if the user checks and then unchecks the system extension before clicking OK

Answered by DTS Engineer in 703352022

I’m not sure I understand you here. It sounds like you’re seeing the -request:didFinishWithResult: delegate method being called with the result set to OSSystemExtensionRequestCompleted even though the request is still pending in System Preferences > Security > General. Is that right? If so, that’s clearly a bug.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

I’m not sure I understand you here. It sounds like you’re seeing the -request:didFinishWithResult: delegate method being called with the result set to OSSystemExtensionRequestCompleted even though the request is still pending in System Preferences > Security > General. Is that right? If so, that’s clearly a bug.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Yes, that is exactly what is happening. I will submit a bug.

some additional information: running systemextensionctl list shows the extension in "Activated disabled" state

meanwhile, is there any method (in swift/obj-c) to get the actual system extension status?

Result of system extension activation
 
 
Q