Hi devfunshark,
did you manage to fix this problem?
I see the same thing when enabling Sandbox for System Extension target. SecCodeCopyGuestWithAttributes with kSecGuestAttributeAudit flag is failing with error code 100001 and I can see errors like MacOS error: -25337 and 67061 in console.
If I try the same thing on App target which is also Sanboxed, it works. It's only the System Extension that's failing.
I was thinking about creating a daemon which would run in the background and it would serve as a service for code signing verfication. System Extension would send audit token through XPC and daemon would do the app signature check and respond with result. Although it's probably another 0.1ms delay (well, maybe less) when comparing to doing that in System Extension with Sandbox disabled.
Please let me know, if you found a better solution.
Thanks,
Robert
Topic:
Privacy & Security
SubTopic:
General
Tags: