Skip to content

Commit

Permalink
sandbox.rb: type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nandahkrishna committed Jul 13, 2024
1 parent 7c50af5 commit 18f1b70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/sandbox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def deny_all_network_except_pipe(path)
allow_network path:, type: :literal
end

sig { void }
def allow_network_localhost
add_rule allow: true, operation: "network-inbound", filter: "local ip \"localhost:*\""
add_rule allow: true, operation: "network*", filter: "remote ip \"localhost:*\""
Expand Down

0 comments on commit 18f1b70

Please sign in to comment.