DYLD_INSERT_LIBRARIES does not work for an application signed with Mountain Lion permissions

I notice that it DYLD_INSERT_LIBRARIESno longer works in Mountion Lion if the application is encoded with permissions. For instance:

DYLD_INSERT_LIBRARIES=./mylib.dylib /Applications/Safari.app/Contents/MacOS/Safari
  dyld: DYLD_ environment variables being ignored because main executeable is code signed with entitlements.

I know this is probably the new security feature added to Mountion Lion. Does anyone know if there is an alternative way to do a similar thing on Mountain Lion? Thank!

+5
source share
1 answer

It is impossible to do DYLD_INSERT_LIBRARIESwork on applications of this kind.

dyld DYLD_ , , , , setuid/setgid , . , , dyld. , processRestricted , pruneEnvironmentVariables .

+4

All Articles