[MacPorts] #54963: Ports cannot set setuid bit

MacPorts noreply at macports.org
Sun Oct 1 18:52:03 UTC 2017


#54963: Ports cannot set setuid bit
---------------------+------------------------
  Reporter:  danchr  |      Owner:
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  base    |    Version:  2.4.99
Resolution:          |   Keywords:  highsierra
      Port:          |
---------------------+------------------------

Comment (by danchr):

 AFAICT this fixes it:

 {{{
 #!patch
 diff --git a/src/port1.0/portsandbox.tcl b/src/port1.0/portsandbox.tcl
 --- a/src/port1.0/portsandbox.tcl
 +++ b/src/port1.0/portsandbox.tcl
 @@ -89,7 +89,7 @@ proc portsandbox::set_profile {target} {
  (regex #\"^(/private)?(/var)?/tmp/\" #\"^(/private)?/var/folders/\"))"

      foreach dir $allow_dirs {
 -        append portsandbox_profile " (allow file-write* ("
 +        append portsandbox_profile " (allow file-write* file-write-
 setugid ("
          if {${os.major} > 9} {
              append portsandbox_profile "subpath \"${dir}\"))"
          } else {
 }}}

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


More information about the macports-tickets mailing list