Skip to content

Commit

Permalink
port1.0: Allow /var/db/mds/system in trace mode
Browse files Browse the repository at this point in the history
/var/db/mds/system is used when loading the system certificate store, so
allow it in trace mode. This fixes trace mode builds using the haskell
stack build system, which downloads things during the build phase.

Additionally, remove a trailing slash from the entry for
/var/db/timezone/zoneinfo, which seems to have prevented it from working
correctly.
  • Loading branch information
neverpanic committed Aug 28, 2019
1 parent 25922fe commit 009cf68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/port1.0/porttrace.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,9 @@ namespace eval porttrace {
}
}

# Allow timezone info
allow trace_sandbox "/var/db/timezone/zoneinfo/"
# Allow timezone info & access to system certificates
allow trace_sandbox "/var/db/timezone/zoneinfo"
allow trace_sandbox "/var/db/mds/system"

# Allow access to SDK if it's not inside the Developer folder.
if {${configure.sdkroot} ne ""} {
Expand Down

0 comments on commit 009cf68

Please sign in to comment.