Mac Developer: osx - DYLD_INSERT_LIBRARIES doesn't work for app signed with entitlements on Mountain Lion
osx - DYLD_INSERT_LIBRARIES doesn't work for app signed with entitlements on Mountain Lion - Stack Overflow: "dyld strips all DYLD_ environment variables on applications it considers to be restricted, which includes setuid/setgid binaries and those signed with particular entitlements. You can see how this work by looking at the dyld source. In particular, processRestricted is responsible for determining whether the restrictions should be applied and pruneEnvironmentVariables does the special handling of the environment variables."
This looks like some good news. Of course, if the code sign is stripped from your binary it's not going to be a problem so this is more of a system-wide security feature. i.e. no loading dylibs into every GUI process...
Labels: DYLD_INSERT_LIBRARIES, mountain lion
Post a Comment