Skip to content

Commit

Permalink
Add comment to keep policy safe for UnrestrictedNetworking.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 630354112
Change-Id: Ic1146162d0eb75b6c66a14a956dea30d30e68475
  • Loading branch information
okunz authored and copybara-github committed May 3, 2024
1 parent b544015 commit 9aa72d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sandboxed_api/sandbox.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ Sandbox::~Sandbox() {

// A generic policy which should work with majority of typical libraries, which
// are single-threaded and require ~30 basic syscalls.
//
// IMPORTANT: This policy must be safe to use with
// `Allow(sandbox2::UnrestrictedNetworking())`.
void InitDefaultPolicyBuilder(sandbox2::PolicyBuilder* builder) {
(*builder)
.AllowRead()
Expand Down

0 comments on commit 9aa72d4

Please sign in to comment.