Permalink
Browse files

port1.0: Include non-default SDK in trace sandbox.

  • Loading branch information...
Lord-Kamina authored and neverpanic committed Jun 14, 2018
1 parent b429c5b commit a9579836b7b31158c1b3a67c4c5a7d9ffdbf572f
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/port1.0/porttrace.tcl
@@ -131,7 +131,7 @@ namespace eval porttrace {
# @param workpath The $workpath of the current installation
proc trace_start {workpath} {
global \
- developer_dir distpath env macportsuser os.platform \
+ developer_dir distpath env macportsuser os.platform configure.sdkroot \
portpath prefix
variable fifo
@@ -207,6 +207,9 @@ namespace eval porttrace {
}
}
+ # Allow access to SDK if it's not inside the Developer folder.
+ allow trace_sandbox "${configure.sdkroot}"
+
# Allow access to some Xcode specifics
allow trace_sandbox "/var/db/xcode_select_link"
allow trace_sandbox "/var/db/mds"

0 comments on commit a957983

Please sign in to comment.