DYLD_INSERT_LIBRARIES does not work in chrome on Mac OSx after version 47

381 views
Skip to first unread message

Vikas Pushkar

unread,
Aug 24, 2016, 11:00:48 AM8/24/16
to Chromium-dev
I have a usecase where i have to load a patch to chrome on Mac OSx using DYLD_INSERT_LIBRARIES. it works fine with chrome version 47 but after that it dos not work. i checked through activity monitor to see if dylib is loaded, i couldnt find my dylib in there. Has something been changed in chrome for loading dylib patches? can dylib be loaded via some other mechanism?

Robert Sesek

unread,
Aug 24, 2016, 11:10:20 AM8/24/16
to vikasku...@gmail.com, Chromium-dev
Chrome on Mac is now codesigned with the "restrict" flag (see issue 523041), which on El Capitan and above prevents multiple vectors of code injection. One of the blocked vectors is DYLD_INSERT_LIBRARIES. This was a deliberate change to harden the app, and there is no workaround available. We don't want other processes injecting code into Chrome, as extensions are the supported mechanism for extending functionality.

rsesek / @chromium.org

On Wed, Aug 24, 2016 at 11:00 AM, Vikas Pushkar <vikasku...@gmail.com> wrote:
I have a usecase where i have to load a patch to chrome on Mac OSx using DYLD_INSERT_LIBRARIES. it works fine with chrome version 47 but after that it dos not work. i checked through activity monitor to see if dylib is loaded, i couldnt find my dylib in there. Has something been changed in chrome for loading dylib patches? can dylib be loaded via some other mechanism?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Vikas Pushkar

unread,
Aug 25, 2016, 4:13:41 PM8/25/16
to Robert Sesek, Chromium-dev

Thanks for reply but I was wondering, how do u guys  support things like narrator for chrome, will it not externally load on it? Like it does in Windows? On Mac does it work the same way or different?

Reply all
Reply to author
Forward
0 new messages