Skip to content

Commit

Permalink
Fix network sandboxing on macOS.
Browse files Browse the repository at this point in the history
Fixes #10068.

RELNOTES: None.
PiperOrigin-RevId: 279958764
  • Loading branch information
jmmv authored and copybara-github committed Nov 12, 2019
1 parent ac04cd9 commit 8e7c349
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@ private void writeConfig(

if (!allowNetwork) {
out.println("(deny network*)");
out.println("(allow network* (local ip \"localhost:*\"))");
out.println("(allow network* (remote ip \"localhost:*\"))");
out.println("(allow network* (remote unix-socket))");
}
Expand Down
6 changes: 0 additions & 6 deletions src/test/shell/bazel/bazel_sandboxing_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,6 @@ genrule(
)
EOF

# TODO(https://github.com/bazelbuild/bazel/issues/10068): Remove once
# network sandboxing works on macOS.
case "$(uname -s)" in
Darwin) REMOTE_NETWORK_ADDRESS= ;;
esac

if [[ -n "${REMOTE_NETWORK_ADDRESS}" ]]; then
local hostname="${REMOTE_NETWORK_ADDRESS%:*}"
local remote_ip
Expand Down

0 comments on commit 8e7c349

Please sign in to comment.