summaryrefslogtreecommitdiff
path: root/chromium/sandbox/features.gni
blob: 46c8a03f45e0b0458f5ce1ae24df9815a127ae26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/nacl/config.gni")

# The seccomp-bpf sandbox is only supported on six architectures
# currently.
# Do not disable seccomp_bpf anywhere without talking to
# security@chromium.org!
use_seccomp_bpf = (is_linux || is_android) &&
                  (current_cpu == "x86" || current_cpu == "x64" ||
                   current_cpu == "arm" || current_cpu == "arm64" ||
                   current_cpu == "mipsel" || current_cpu == "mips64el")

use_seccomp_bpf = use_seccomp_bpf || is_nacl_nonsfi

# SSBD (Speculative Store Bypass Disable) is a mitigation of Spectre Variant 4.
# As Spectre Variant 4 can be mitigated by site isolation, opt-out SSBD on site
# isolation fully applied platform.
disable_seccomp_ssbd = use_seccomp_bpf && !is_android