Calls to system() on Mac OS
To work around the Mac OS SIP feature, for every system() call, the HIA copies bin/sh to a temporary directory (in /tmp) and arranges for the copy to be used so that DYLD_INSERT_LIBRARIES is not filtered out during the call. Once the child process has completed, the parent deletes the temporary directory.
This is the default behavior. To modify this, enable the environment variable TV_MACOS_SYSTEM.