Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(952)

Side by Side Diff: sandbox/linux/BUILD.gn

Issue 299743002: Add domain-specific language for BPF policies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move bpf_dsl into its own top-level directory Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sandbox/linux/bpf_dsl/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 6
7 declare_args() { 7 declare_args() {
8 compile_suid_client = is_linux 8 compile_suid_client = is_linux
9 9
10 compile_credentials = is_linux 10 compile_credentials = is_linux
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 "//testing/gtest", 85 "//testing/gtest",
86 ] 86 ]
87 87
88 if (compile_suid_client) { 88 if (compile_suid_client) {
89 sources += [ 89 sources += [
90 "suid/client/setuid_sandbox_client_unittest.cc", 90 "suid/client/setuid_sandbox_client_unittest.cc",
91 ] 91 ]
92 } 92 }
93 if (use_seccomp_bpf) { 93 if (use_seccomp_bpf) {
94 sources += [ 94 sources += [
95 "bpf_dsl/bpf_dsl_unittest.cc",
96 "bpf_dsl/cons_unittest.cc",
95 "seccomp-bpf-helpers/baseline_policy_unittest.cc", 97 "seccomp-bpf-helpers/baseline_policy_unittest.cc",
96 "seccomp-bpf/bpf_tests_unittest.cc", 98 "seccomp-bpf/bpf_tests_unittest.cc",
97 "seccomp-bpf/codegen_unittest.cc", 99 "seccomp-bpf/codegen_unittest.cc",
98 "seccomp-bpf/errorcode_unittest.cc", 100 "seccomp-bpf/errorcode_unittest.cc",
99 "seccomp-bpf/sandbox_bpf_unittest.cc", 101 "seccomp-bpf/sandbox_bpf_unittest.cc",
100 "seccomp-bpf/syscall_iterator_unittest.cc", 102 "seccomp-bpf/syscall_iterator_unittest.cc",
101 "seccomp-bpf/syscall_unittest.cc", 103 "seccomp-bpf/syscall_unittest.cc",
102 ] 104 ]
103 } 105 }
104 if (compile_credentials) { 106 if (compile_credentials) {
(...skipping 17 matching lines...) Expand all
122 # [ "OS == "android"", { 124 # [ "OS == "android"", {
123 # "dependencies": [ 125 # "dependencies": [
124 # "../testing/android/native_test.gyp:native_test_native_code", 126 # "../testing/android/native_test.gyp:native_test_native_code",
125 # ], 127 # ],
126 # }], 128 # }],
127 # ], 129 # ],
128 # }, 130 # },
129 131
130 component("seccomp_bpf") { 132 component("seccomp_bpf") {
131 sources = [ 133 sources = [
134 "bpf_dsl/bpf_dsl.cc",
135 "bpf_dsl/bpf_dsl.h",
136 "bpf_dsl/cons.h",
132 "seccomp-bpf/basicblock.cc", 137 "seccomp-bpf/basicblock.cc",
133 "seccomp-bpf/basicblock.h", 138 "seccomp-bpf/basicblock.h",
134 "seccomp-bpf/codegen.cc", 139 "seccomp-bpf/codegen.cc",
135 "seccomp-bpf/codegen.h", 140 "seccomp-bpf/codegen.h",
136 "seccomp-bpf/die.cc", 141 "seccomp-bpf/die.cc",
137 "seccomp-bpf/die.h", 142 "seccomp-bpf/die.h",
138 "seccomp-bpf/errorcode.cc", 143 "seccomp-bpf/errorcode.cc",
139 "seccomp-bpf/errorcode.h", 144 "seccomp-bpf/errorcode.h",
140 "seccomp-bpf/instruction.h", 145 "seccomp-bpf/instruction.h",
141 "seccomp-bpf/linux_seccomp.h", 146 "seccomp-bpf/linux_seccomp.h",
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 # 'type': 'none', 313 # 'type': 'none',
309 # 'variables': { 314 # 'variables': {
310 # 'test_suite_name': 'sandbox_linux_jni_unittests', 315 # 'test_suite_name': 'sandbox_linux_jni_unittests',
311 # }, 316 # },
312 # 'dependencies': [ 317 # 'dependencies': [
313 # 'sandbox_linux_jni_unittests', 318 # 'sandbox_linux_jni_unittests',
314 # ], 319 # ],
315 # 'includes': [ '../../build/apk_test.gypi' ], 320 # 'includes': [ '../../build/apk_test.gypi' ],
316 # } 321 # }
317 } 322 }
OLDNEW
« no previous file with comments | « no previous file | sandbox/linux/bpf_dsl/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698