Skip to content

Commit

Permalink
port1.0: Allow accessing clonebin in trace mode
Browse files Browse the repository at this point in the history
Access would previously be allowed, too, because these files are not
installed by a MacPorts port. They did generate a warning, though, which
is not necessary. Adding an explicit whitelist entry silences them.
  • Loading branch information
neverpanic committed Nov 15, 2024
1 parent 12986b1 commit 60643a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/port1.0/port_autoconf.tcl.in
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ namespace eval portutil::autoconf {
variable prefix "@prefix_expanded@"
variable tcl_package_path "@TCL_PACKAGE_PATH@"
variable trace_sipworkaround_path "@DARWINTRACE_SIP_WORKAROUND_PATH@"
variable clonebin_path "@CLONEBIN_PATH@"
}
2 changes: 2 additions & 0 deletions src/port1.0/porttrace.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ namespace eval porttrace {

# Grant access to the directory we use to mirror binaries under SIP
allow trace_sandbox ${portutil::autoconf::trace_sipworkaround_path}
# Grant access to MacPorts' clonebin utilities
allow trace_sandbox ${portutil::autoconf::clonebin_path}
# Defer back to MacPorts for dependency checks inside $prefix. This must be at the end,
# or it'll be used instead of more specific rules.
ask trace_sandbox $prefix
Expand Down

0 comments on commit 60643a9

Please sign in to comment.