[MacPorts] #50918: buildbot-slave: file mkdir in post-extract creates a dir owned by root

MacPorts noreply at macports.org
Thu Mar 24 14:56:44 PDT 2016


#50918: buildbot-slave: file mkdir in post-extract creates a dir owned by root
-----------------------------+-------------------
  Reporter:  mojca@…         |      Owner:  cal@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  base            |    Version:  2.3.4
Resolution:                  |   Keywords:
      Port:  buildbot-slave  |
-----------------------------+-------------------

Comment (by cal@…):

 This might be related to privilege separation. My guess is that privileges
 are not dropped again after they were first picked up. I recently added a
 add_users statement to the port, which is handled in the extract phase and
 requires privileges. If those aren't dropped again properly after the
 adduser (in port1.0/portutil.tcl) that would lead to this.

 Additionally, I've noticed that setting $phase.asroot causes privileges to
 be escalated, but I haven't found a corresponding drop. This should be
 fixed.

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


More information about the macports-tickets mailing list