Skip to content

Commit

Permalink
port1.0: Include non-default SDK in trace sandbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Kamina authored and neverpanic committed Jun 18, 2018
1 parent b429c5b commit a957983
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/port1.0/porttrace.tcl
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a957983

Please sign in to comment.