Re: [MacPorts] #66358: sip-workaround / trace mode no longer works on arm64 macOS ≥ 13 due to new security features

MacPorts noreply at macports.org
Wed Sep 25 20:04:37 UTC 2024


#66358: sip-workaround / trace mode no longer works on arm64 macOS ≥ 13 due to new
security features
-------------------------+-----------------------------------------
  Reporter:  reneeotten  |      Owner:  Clemens Lang <neverpanic@…>
      Type:  defect      |     Status:  reopened
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:
Resolution:              |   Keywords:  arm64 ventura sonoma
      Port:              |
-------------------------+-----------------------------------------

Comment (by markmentovai):

 I should probably show something with the full end-to-end context
 demonstrating that `DYLD_INSERT_LIBRARIES` now works.

 {{{
 mark at arm-and-hammer zsh% cat /tmp/preload.cc
 #include <stdio.h>

 static struct Preload {
  public:
   Preload() {
     fprintf(stderr, "preloaded!\n");
   }
 } preload;
 mark at arm-and-hammer zsh% clang++ -dynamiclib -o /tmp/libpreload.dylib
 /tmp/preload.cc
 mark at arm-and-hammer zsh% DYLD_INSERT_LIBRARIES=/tmp/libpreload.dylib
 /tmp/ls -dl /tmp/ls /tmp/ /tmp /
 preloaded!
 drwxr-xr-x  20 root  wheel    640 Sep  5 16:54 /
 lrwxr-xr-x@  1 root  wheel     11 Sep  5 16:54 /tmp -> private/tmp
 drwxrwxrwt  37 root  wheel   1184 Sep 25 16:04 /tmp/
 -rwxr-xr-x   1 mark  wheel  89088 Sep 25 15:54 /tmp/ls
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66358#comment:59>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list