Questions tagged [dyld-insert-libraries]

2 questions
4
votes
1 answer

prevent function interposing in the library that is linked to the library which does the interposing

Well I couldn't find very nice short phrase for my question title, but here is what I mean: I have a library that interposes some syscalls like open(2). I use this method for interposing. I add it to DYLD_INSERT_LIBRARIES in order to achieve my…
Mihir Luthra
  • 6,059
  • 3
  • 14
  • 39
0
votes
0 answers

ctypes.cdll and how to remap @executable_path

Trying to load a third-party library with cdll: import ctypes, os lib_dir = '/path/to/directory/containing' # this won't work: #os.environ['DYLD_LIBRARY_PATH'] = lib_dir lib = ctypes.CDLL(os.path.join(lib_dir, 'theLib.dylib')) however the…
fferri
  • 18,285
  • 5
  • 46
  • 95