With SIP enabled, calling
es_new_client_result_t res = es_new_client(&g_client,(argc > 0) ? deferedHandler : serialHandler);
returns ES_NEW_CLIENT_RESULT_ERR_NOT_PERMITTED.
I do have com.apple.developer.endpoint-security.client in my provising profile.
I see that provisinging profile is embedded in the installed application
/Applications/fox1.app/Contents/Library/SystemExtensions/com.netsqllc.fox1.foxextension.systemextension/Contents/embedded.provisionprofile
and looking at the contents of that file does show the endpoint-security-client inside
Entitlements
com.apple.developer.endpoint-security.client
The extension does launch with euid and ruid of 0.
(Edit: Also, the System Preferences panel comes up, I unlock it, and click "Allow" to allow the application to start.)
Any ideas why I am gettin ES_NEW_CLIENT_RESULT_ERR_NOT_PERMITTED?