commit | 9cf541baea7e4df37d502dd51fb12246c43b36a4 | [log] [tgz] |
---|---|---|
author | Xiaohan Wang <xhwang@chromium.org> | Sat Jan 22 01:04:01 2022 |
committer | Copybara-Service <copybara-worker@google.com> | Sat Jan 22 01:19:40 2022 |
tree | 38798b5365a28b0b85ee57be29b165a2926d689c | |
parent | f45553d7dde2b1ce3a69cdbc3449f054242fae0c [diff] |
misc4: Use BUILDFLAG for OS checking Use // BUILDFLAG(IS_XXX) instead of // OS_XXX. Generated by `os_buildflag_migration.py` (https://crrev.com/c/3311983) with modifications. R=thakis@chromium.org Bug: 1234043 Change-Id: Ibcf60c672ab3167ddad14656bff27378e67f3975 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3408124 Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Auto-Submit: Xiaohan Wang <xhwang@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Owners-Override: Nico Weber <thakis@chromium.org> Reviewed-by: Will Harris <wfh@chromium.org> Commit-Queue: Will Harris <wfh@chromium.org> Cr-Commit-Position: refs/heads/main@{#962181} NOKEYCHECK=True GitOrigin-RevId: 64dc570e00d7bed0381134d8b474d0c2acd5a180
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.