Hello,
I've been running into some issues with a PNaCL application using BSD sockets which I can reduce to a simple minimal application. The program has a normal main() entry point, and creates a AF_INET/SOCK_STREAM socket. The socket() call returns EACCESS (Permission denied), even though the manifest states the proper permissions.
After some digging around in a live sample using Curl, I found that my appication is working as expected when I link it with libnacl_spawn. I'm not able to find any proper documentation of this library, so I'm not sure what it's exact function is, and when I am supposed to link to it.
Can anyone explain what is happening, and why linking to nacl_spawn is required to get BSD sockets to work in my app?
Thank you,