commit | 0964d2a62321ed5573393c634bc3ee8c3f8a8533 | [log] [tgz] |
---|---|---|
author | Will Harris <wfh@chromium.org> | Fri Sep 24 21:13:28 2021 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Sep 24 21:26:06 2021 |
tree | 05b2ceb0f6836aa4b7e09667988a8d0b53a492a0 | |
parent | b1033372ee7e523433789c5a137df92a11651e52 [diff] |
Move ability to create jobless sandbox target into policy object. Prior to this CL the ability to create sandbox targets with no sandbox job was smuggled within the command line of the child process as it was passed around within content and sandbox. This CL moves this rule into a concrete attribute of the sandbox policy for the target. This CL contains no functional changes. BUG=None Change-Id: I3dd74ce11f60fc6dbab99ac39b1a3ba575dfc4b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3182784 Commit-Queue: Will Harris <wfh@chromium.org> Reviewed-by: James Forshaw <forshaw@chromium.org> Cr-Commit-Position: refs/heads/main@{#924908} NOKEYCHECK=True GitOrigin-RevId: 27400edabafc905fbfd04e1604bbd03662233f22
This directory contains platform-specific sandboxing libraries. Sandboxing is a technique that can improve the security of an application by separating untrustworthy code (or code that handles untrustworthy data) and restricting its privileges and capabilities.
Each platform relies on the operating system's process primitive to isolate code into distinct security principals, and platform-specific technologies are used to implement the privilege reduction. At a high-level:
mac/
uses the Seatbelt sandbox. See the detailed design for more.linux/
uses namespaces and Seccomp-BPF. See the detailed design for more.win/
uses a combination of restricted tokens, distinct job objects, alternate desktops, and integrity levels. See the detailed design for more.Built on top of the low-level sandboxing library is the //sandbox/policy
component, which provides concrete policies and helper utilities for sandboxing specific Chromium processes and services. The core sandbox library cannot depend on the policy component.