Commit b80b1f57 authored by mdempsky's avatar mdempsky Committed by Commit bot

sandbox: move Codegen into bpf_dsl directory

BUG=449357

Review URL: https://codereview.chromium.org/888093005

Cr-Commit-Position: refs/heads/master@{#314694}
parent a3f5c416
...@@ -100,11 +100,11 @@ test("sandbox_linux_unittests") { ...@@ -100,11 +100,11 @@ test("sandbox_linux_unittests") {
sources += [ sources += [
"bpf_dsl/bpf_dsl_more_unittest.cc", "bpf_dsl/bpf_dsl_more_unittest.cc",
"bpf_dsl/bpf_dsl_unittest.cc", "bpf_dsl/bpf_dsl_unittest.cc",
"bpf_dsl/codegen_unittest.cc",
"bpf_dsl/cons_unittest.cc", "bpf_dsl/cons_unittest.cc",
"seccomp-bpf-helpers/baseline_policy_unittest.cc", "seccomp-bpf-helpers/baseline_policy_unittest.cc",
"seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc", "seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc",
"seccomp-bpf/bpf_tests_unittest.cc", "seccomp-bpf/bpf_tests_unittest.cc",
"seccomp-bpf/codegen_unittest.cc",
"seccomp-bpf/errorcode_unittest.cc", "seccomp-bpf/errorcode_unittest.cc",
"seccomp-bpf/sandbox_bpf_unittest.cc", "seccomp-bpf/sandbox_bpf_unittest.cc",
"seccomp-bpf/syscall_iterator_unittest.cc", "seccomp-bpf/syscall_iterator_unittest.cc",
...@@ -146,6 +146,8 @@ component("seccomp_bpf") { ...@@ -146,6 +146,8 @@ component("seccomp_bpf") {
"bpf_dsl/bpf_dsl.h", "bpf_dsl/bpf_dsl.h",
"bpf_dsl/bpf_dsl_forward.h", "bpf_dsl/bpf_dsl_forward.h",
"bpf_dsl/bpf_dsl_impl.h", "bpf_dsl/bpf_dsl_impl.h",
"bpf_dsl/codegen.cc",
"bpf_dsl/codegen.h",
"bpf_dsl/cons.h", "bpf_dsl/cons.h",
"bpf_dsl/dump_bpf.cc", "bpf_dsl/dump_bpf.cc",
"bpf_dsl/dump_bpf.h", "bpf_dsl/dump_bpf.h",
...@@ -154,8 +156,6 @@ component("seccomp_bpf") { ...@@ -154,8 +156,6 @@ component("seccomp_bpf") {
"bpf_dsl/policy_compiler.cc", "bpf_dsl/policy_compiler.cc",
"bpf_dsl/policy_compiler.h", "bpf_dsl/policy_compiler.h",
"bpf_dsl/trap_registry.h", "bpf_dsl/trap_registry.h",
"seccomp-bpf/codegen.cc",
"seccomp-bpf/codegen.h",
"seccomp-bpf/die.cc", "seccomp-bpf/die.cc",
"seccomp-bpf/die.h", "seccomp-bpf/die.h",
"seccomp-bpf/errorcode.cc", "seccomp-bpf/errorcode.cc",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "sandbox/linux/seccomp-bpf/codegen.h" #include "sandbox/linux/bpf_dsl/codegen.h"
#include <linux/filter.h> #include <linux/filter.h>
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef SANDBOX_LINUX_SECCOMP_BPF_CODEGEN_H__ #ifndef SANDBOX_LINUX_BPF_DSL_CODEGEN_H__
#define SANDBOX_LINUX_SECCOMP_BPF_CODEGEN_H__ #define SANDBOX_LINUX_BPF_DSL_CODEGEN_H__
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
...@@ -120,4 +120,4 @@ class SANDBOX_EXPORT CodeGen { ...@@ -120,4 +120,4 @@ class SANDBOX_EXPORT CodeGen {
} // namespace sandbox } // namespace sandbox
#endif // SANDBOX_LINUX_SECCOMP_BPF_CODEGEN_H__ #endif // SANDBOX_LINUX_BPF_DSL_CODEGEN_H__
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "sandbox/linux/seccomp-bpf/codegen.h" #include "sandbox/linux/bpf_dsl/codegen.h"
#include <linux/filter.h> #include <linux/filter.h>
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
#include <stdio.h> #include <stdio.h>
#include "sandbox/linux/bpf_dsl/codegen.h"
#include "sandbox/linux/bpf_dsl/trap_registry.h" #include "sandbox/linux/bpf_dsl/trap_registry.h"
#include "sandbox/linux/seccomp-bpf/codegen.h"
#include "sandbox/linux/seccomp-bpf/linux_seccomp.h" #include "sandbox/linux/seccomp-bpf/linux_seccomp.h"
namespace sandbox { namespace sandbox {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "sandbox/linux/seccomp-bpf/codegen.h" #include "sandbox/linux/bpf_dsl/codegen.h"
#include "sandbox/sandbox_export.h" #include "sandbox/sandbox_export.h"
namespace sandbox { namespace sandbox {
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#include "base/macros.h" #include "base/macros.h"
#include "sandbox/linux/bpf_dsl/bpf_dsl.h" #include "sandbox/linux/bpf_dsl/bpf_dsl.h"
#include "sandbox/linux/bpf_dsl/bpf_dsl_impl.h" #include "sandbox/linux/bpf_dsl/bpf_dsl_impl.h"
#include "sandbox/linux/bpf_dsl/codegen.h"
#include "sandbox/linux/bpf_dsl/policy.h" #include "sandbox/linux/bpf_dsl/policy.h"
#include "sandbox/linux/seccomp-bpf/codegen.h"
#include "sandbox/linux/seccomp-bpf/die.h" #include "sandbox/linux/seccomp-bpf/die.h"
#include "sandbox/linux/seccomp-bpf/errorcode.h" #include "sandbox/linux/seccomp-bpf/errorcode.h"
#include "sandbox/linux/seccomp-bpf/linux_seccomp.h" #include "sandbox/linux/seccomp-bpf/linux_seccomp.h"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "sandbox/linux/bpf_dsl/bpf_dsl_forward.h" #include "sandbox/linux/bpf_dsl/bpf_dsl_forward.h"
#include "sandbox/linux/seccomp-bpf/codegen.h" #include "sandbox/linux/bpf_dsl/codegen.h"
#include "sandbox/linux/seccomp-bpf/errorcode.h" #include "sandbox/linux/seccomp-bpf/errorcode.h"
#include "sandbox/sandbox_export.h" #include "sandbox/sandbox_export.h"
......
...@@ -122,6 +122,8 @@ ...@@ -122,6 +122,8 @@
'bpf_dsl/bpf_dsl.h', 'bpf_dsl/bpf_dsl.h',
'bpf_dsl/bpf_dsl_forward.h', 'bpf_dsl/bpf_dsl_forward.h',
'bpf_dsl/bpf_dsl_impl.h', 'bpf_dsl/bpf_dsl_impl.h',
'bpf_dsl/codegen.cc',
'bpf_dsl/codegen.h',
'bpf_dsl/cons.h', 'bpf_dsl/cons.h',
'bpf_dsl/dump_bpf.cc', 'bpf_dsl/dump_bpf.cc',
'bpf_dsl/dump_bpf.h', 'bpf_dsl/dump_bpf.h',
...@@ -130,8 +132,6 @@ ...@@ -130,8 +132,6 @@
'bpf_dsl/policy_compiler.cc', 'bpf_dsl/policy_compiler.cc',
'bpf_dsl/policy_compiler.h', 'bpf_dsl/policy_compiler.h',
'bpf_dsl/trap_registry.h', 'bpf_dsl/trap_registry.h',
'seccomp-bpf/codegen.cc',
'seccomp-bpf/codegen.h',
'seccomp-bpf/die.cc', 'seccomp-bpf/die.cc',
'seccomp-bpf/die.h', 'seccomp-bpf/die.h',
'seccomp-bpf/errorcode.cc', 'seccomp-bpf/errorcode.cc',
......
...@@ -40,11 +40,11 @@ ...@@ -40,11 +40,11 @@
'sources': [ 'sources': [
'bpf_dsl/bpf_dsl_more_unittest.cc', 'bpf_dsl/bpf_dsl_more_unittest.cc',
'bpf_dsl/bpf_dsl_unittest.cc', 'bpf_dsl/bpf_dsl_unittest.cc',
'bpf_dsl/codegen_unittest.cc',
'bpf_dsl/cons_unittest.cc', 'bpf_dsl/cons_unittest.cc',
'seccomp-bpf-helpers/baseline_policy_unittest.cc', 'seccomp-bpf-helpers/baseline_policy_unittest.cc',
'seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc', 'seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc',
'seccomp-bpf/bpf_tests_unittest.cc', 'seccomp-bpf/bpf_tests_unittest.cc',
'seccomp-bpf/codegen_unittest.cc',
'seccomp-bpf/errorcode_unittest.cc', 'seccomp-bpf/errorcode_unittest.cc',
'seccomp-bpf/sandbox_bpf_unittest.cc', 'seccomp-bpf/sandbox_bpf_unittest.cc',
'seccomp-bpf/syscall_iterator_unittest.cc', 'seccomp-bpf/syscall_iterator_unittest.cc',
......
...@@ -23,10 +23,10 @@ ...@@ -23,10 +23,10 @@
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "base/posix/eintr_wrapper.h" #include "base/posix/eintr_wrapper.h"
#include "base/third_party/valgrind/valgrind.h" #include "base/third_party/valgrind/valgrind.h"
#include "sandbox/linux/bpf_dsl/codegen.h"
#include "sandbox/linux/bpf_dsl/dump_bpf.h" #include "sandbox/linux/bpf_dsl/dump_bpf.h"
#include "sandbox/linux/bpf_dsl/policy.h" #include "sandbox/linux/bpf_dsl/policy.h"
#include "sandbox/linux/bpf_dsl/policy_compiler.h" #include "sandbox/linux/bpf_dsl/policy_compiler.h"
#include "sandbox/linux/seccomp-bpf/codegen.h"
#include "sandbox/linux/seccomp-bpf/die.h" #include "sandbox/linux/seccomp-bpf/die.h"
#include "sandbox/linux/seccomp-bpf/errorcode.h" #include "sandbox/linux/seccomp-bpf/errorcode.h"
#include "sandbox/linux/seccomp-bpf/linux_seccomp.h" #include "sandbox/linux/seccomp-bpf/linux_seccomp.h"
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#include "base/files/scoped_file.h" #include "base/files/scoped_file.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "sandbox/linux/seccomp-bpf/codegen.h" #include "sandbox/linux/bpf_dsl/codegen.h"
#include "sandbox/sandbox_export.h" #include "sandbox/sandbox_export.h"
namespace sandbox { namespace sandbox {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment