What is Sandbox2?
Stay organized with collections
Save and categorize content based on your preferences.
Sandboxing untrusted code is useful when you have to rely on third-party
developed software where you don't have access to source code, or you don't have
resources to perform a source code assessment. Sandboxing can also be useful as
an additional security boundary for your own code.
Sandbox2 is an open-source C++ security sandbox for Linux written by security
engineers at Google. With Sandbox2 you can restrict the runtime environment to
the minimum required for genuine operations, thus limiting the impact of
potential code execution vulnerabilities.
Sandbox2 can be used to sandbox entire programs or portions of programs written
in C/C++.
Available Documentation
Sandbox2 Explained — Describes
Sandbox2's underlying technology and architecture.
Getting Started —
Provides guidance helping you implement your own Sandbox2 sandbox.
Examples — Provides examples
demonstrating how to use Sandbox2 in different scenarios and how to write
policies.
FAQ — Addresses frequent queries
regarding Sandbox2.
Get Sandbox2
Sandbox2 is part of Sandboxed API (SAPI). You
can download the source code from:
https://github.com/google/sandboxed-api/tree/main/sandboxed_api/sandbox2.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-22 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-22 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-22 UTC."]]