Skip to content

Commit

Permalink
Make Sandbox::GetEnvs protected rather than private.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 705069065
Change-Id: Ib39e640e0c6680d09844b98987c2e27a1954e338
  • Loading branch information
Sandboxed API Team authored and copybara-github committed Dec 11, 2024
1 parent d423752 commit 56220f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandboxed_api/sandbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ class Sandbox {
static_cast<int>(absl::StderrThreshold())));
}

private:
// Gets the environment variables passed to the sandboxee.
virtual void GetEnvs(std::vector<std::string>* envs) const {
// Do nothing by default.
}

private:
// Returns the sandbox policy. Subclasses can modify the default policy
// builder, or return a completely new policy.
virtual std::unique_ptr<sandbox2::Policy> ModifyPolicy(
Expand Down

0 comments on commit 56220f8

Please sign in to comment.