[MacPorts] #49815: gdb: "rootless" El Capitan prevents required edit of /System/Library/LaunchDaemons/com.apple.taskgated.plist

MacPorts noreply at macports.org
Sat Jan 7 14:14:12 UTC 2017


#49815: gdb: "rootless" El Capitan prevents required edit of
/System/Library/LaunchDaemons/com.apple.taskgated.plist
--------------------------+-----------------------------
  Reporter:  s.j.clark@…  |      Owner:  stuartwesterman
      Type:  defect       |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.3.4
Resolution:               |   Keywords:  elcapitan
      Port:  gdb          |
--------------------------+-----------------------------

Comment (by gthb):

 Seems like the notice “You will need to make sure
 /System/Library/LaunchDaemons/com.apple.taskgated.plist has the '-p'
 option” should be removed from the gdb port ... because doing so is:

 * “**strongly unrecommended**” by the upstream documentation
 * actively prevented by Apple's SIP (though there are workarounds for
 that)
 * documented as no longer supported in `man taskgated`: “Procmod and
 procview support (-p) was removed in 10.11.”

 Instead, the upstream documentation says the “most up to date and secure
 method” is to code-sign gdb, and it has instructions for doing so. Those
 worked for me, eventually, when I found a workaround for the `codesign`
 command segfaulting, see:
 https://forums.developer.apple.com/message/204823#204823

 In any case, it seems reasonable to update the gdb port instructions to
 match what upstream recommends.

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


More information about the macports-tickets mailing list