Skip to content

Commit 61df060

Browse files
authored
Disable network in sandboxes by default (#3716)
And format additional files.
1 parent 3239a0e commit 61df060

File tree

12 files changed

+29
-3
lines changed

12 files changed

+29
-3
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ coverage --experimental_fetch_all_coverage_outputs
2323
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
2424
common --experimental_cc_shared_library
2525

26+
# Disable network access in sandboxes by default.
27+
build --sandbox_default_allow_network=false
28+
2629
###############################################################################
2730
## Unique configuration groups
2831
###############################################################################

examples/crate_universe/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ build --nolegacy_external_runfiles
2626
# https://github.com/bazelbuild/bazel/issues/23043.
2727
build --incompatible_autoload_externally=
2828

29+
# Disable network access in sandboxes by default.
30+
build --sandbox_default_allow_network=false
31+
2932
###############################################################################
3033
## Bzlmod
3134
###############################################################################

extensions/bindgen/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ coverage --experimental_fetch_all_coverage_outputs
2020
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
2121
common --experimental_cc_shared_library
2222

23+
# Disable network access in sandboxes by default.
24+
build --sandbox_default_allow_network=false
25+
2326
###############################################################################
2427
## Unique configuration groups
2528
###############################################################################

extensions/mdbook/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ coverage --experimental_fetch_all_coverage_outputs
2020
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
2121
common --experimental_cc_shared_library
2222

23+
# Disable network access in sandboxes by default.
24+
build --sandbox_default_allow_network=false
25+
2326
###############################################################################
2427
## Unique configuration groups
2528
###############################################################################

extensions/prost/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ coverage --experimental_fetch_all_coverage_outputs
2020
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
2121
common --experimental_cc_shared_library
2222

23+
# Disable network access in sandboxes by default.
24+
build --sandbox_default_allow_network=false
25+
2326
###############################################################################
2427
## Unique configuration groups
2528
###############################################################################

extensions/protobuf/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ coverage --experimental_fetch_all_coverage_outputs
2020
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
2121
common --experimental_cc_shared_library
2222

23+
# Disable network access in sandboxes by default.
24+
build --sandbox_default_allow_network=false
25+
2326
###############################################################################
2427
## Unique configuration groups
2528
###############################################################################

extensions/wasm_bindgen/.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ coverage --experimental_fetch_all_coverage_outputs
2525
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
2626
common --experimental_cc_shared_library
2727

28+
# Disable network access in sandboxes by default.
29+
build --sandbox_default_allow_network=false
30+
2831
###############################################################################
2932
## Unique configuration groups
3033
###############################################################################

ffi/rs/allocator_library/empty.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

ffi/rs/global_allocator_library/global_allocator_library.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ fn __rust_alloc_error_handler(size: usize, align: usize) {
3535
}
3636
}
3737

38-
3938
// New feature as of https://github.com/rust-lang/rust/pull/88098.
4039
// This symbol is normally emitted by rustc. 0 means OOMs should abort, 1 means OOMs should panic.
4140
#[linkage = "weak"]

0 commit comments

Comments
 (0)