[MacPorts] #39850: Sandbox denies access when prefix/portdbpath not normalised

MacPorts noreply at macports.org
Thu Mar 20 13:04:07 PDT 2014


#39850: Sandbox denies access when prefix/portdbpath not normalised
-------------------------+----------------------------
  Reporter:  jwhowse4@…  |      Owner:  cal@…
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:  MacPorts 2.3.0
 Component:  base        |    Version:  2.2.0
Resolution:  fixed       |   Keywords:
      Port:              |
-------------------------+----------------------------

Comment (by keybounce@…):

 So with prefix as /opt, and portdbpath as /Volumes/UserData/opt, things
 work.

 I managed to get git-core upgraded. Even p5-error worked.

 But GitX failed.

 Looking over the logs, it seems that it tripped on the same issue
 (sandboxing) in a different location:

 {{{
 :info:build error: couldn't create directory
 /var/folders/jw/gr1qkb8n3hl3b_s9k96j94z40000gq/C/com.apple.Xcode.503/SharedPrecompiledHeaders
 /AppKit-anlqtgejayacuyboylniebtigjsf: Operation not permitted

 keybounceMBP:macports michael$ ls -l /var/folders/
 total 8
 0 drwxr-xr-x  3 root wheel 102 Jan 23  2013 d0/
 0 drwxr-xr-x  3 root wheel 102 Feb 14  2013 dh/
 0 drwxr-xr-x 10 root wheel 340 Feb 20  2013 foo/
 4 lrwxr-xr-x  1 root wheel  34 Jan 22  2013 jw ->
 /Volumes/UserData/Apple/Folders/jw/
 4 lrwxr-xr-x  1 root wheel  34 Jan 22  2013 s1 ->
 /Volumes/UserData/Apple/Folders/s1/
 0 drwxr-xr-x 18 root wheel 612 Jun 18  2013 zz/
 keybounceMBP:macports michael$ ls -ld /var/folders/jw/.
 0 drwxr-xr-x 3 root wheel 102 Jan 22  2013 /var/folders/jw/./
 }}}

 Incidentally, my own T folder in there is also moved:
 {{{
 keybounceMBP:macports michael$ pushd $TMPDIR
 /var/folders/d0/7h02ky8902xf4866mr_xvkq00000gp/T /opt/local/etc/macports
 keybounceMBP:T michael$ pwd -P
 /Volumes/UserData/Users/michael/tmp/T
 }}}
 and I've never had anything complain.

 Installing the svn base now ...

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


More information about the macports-tickets mailing list