1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_SECCOMP_SANDBOX_H_
6 #define CONTENT_COMMON_SECCOMP_SANDBOX_H_
8 // Seccomp enable/disable logic is centralized here.
9 // - We define SECCOMP_SANDBOX if seccomp is compiled in at all: currently,
10 // on non-views (non-ChromeOS) non-ARM non-Clang Linux only.
12 #include "build/build_config.h"
14 #if defined(ARCH_CPU_X86_FAMILY) && !defined(CHROMIUM_SELINUX) && \
15 !defined(OS_CHROMEOS) && !defined(TOOLKIT_VIEWS) && !defined(OS_OPENBSD)
16 #define SECCOMP_SANDBOX
17 #include "sandbox/linux/seccomp-legacy/sandbox.h"
20 #endif // CONTENT_COMMON_SECCOMP_SANDBOX_H_