OLD | NEW |
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 ] | 60 ] |
61 deps += [ | 61 deps += [ |
62 ":seccomp_bpf", | 62 ":seccomp_bpf", |
63 ] | 63 ] |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 # The main sandboxing test target. | 67 # The main sandboxing test target. |
68 test("sandbox_linux_unittests") { | 68 test("sandbox_linux_unittests") { |
69 sources = [ | 69 sources = [ |
70 "services/broker_process_unittest.cc", | |
71 "services/scoped_process_unittest.cc", | 70 "services/scoped_process_unittest.cc", |
72 "services/thread_helpers_unittests.cc", | 71 "services/thread_helpers_unittests.cc", |
73 "services/yama_unittests.cc", | 72 "services/yama_unittests.cc", |
| 73 "syscall_broker/broker_process_unittest.cc", |
74 "tests/main.cc", | 74 "tests/main.cc", |
75 "tests/scoped_temporary_file.cc", | 75 "tests/scoped_temporary_file.cc", |
76 "tests/scoped_temporary_file.h", | 76 "tests/scoped_temporary_file.h", |
77 "tests/scoped_temporary_file_unittest.cc", | 77 "tests/scoped_temporary_file_unittest.cc", |
78 "tests/unit_tests_unittest.cc", | 78 "tests/unit_tests_unittest.cc", |
79 ] | 79 ] |
80 | 80 |
81 deps = [ | 81 deps = [ |
82 ":sandbox", | 82 ":sandbox", |
83 ":sandbox_linux_test_utils", | 83 ":sandbox_linux_test_utils", |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 # ], | 136 # ], |
137 # }, | 137 # }, |
138 | 138 |
139 component("seccomp_bpf") { | 139 component("seccomp_bpf") { |
140 sources = [ | 140 sources = [ |
141 "bpf_dsl/bpf_dsl.cc", | 141 "bpf_dsl/bpf_dsl.cc", |
142 "bpf_dsl/bpf_dsl.h", | 142 "bpf_dsl/bpf_dsl.h", |
143 "bpf_dsl/bpf_dsl_forward.h", | 143 "bpf_dsl/bpf_dsl_forward.h", |
144 "bpf_dsl/bpf_dsl_impl.h", | 144 "bpf_dsl/bpf_dsl_impl.h", |
145 "bpf_dsl/cons.h", | 145 "bpf_dsl/cons.h", |
| 146 "bpf_dsl/dump_bpf.cc", |
| 147 "bpf_dsl/dump_bpf.h", |
146 "bpf_dsl/policy.cc", | 148 "bpf_dsl/policy.cc", |
147 "bpf_dsl/policy.h", | 149 "bpf_dsl/policy.h", |
148 "bpf_dsl/policy_compiler.cc", | 150 "bpf_dsl/policy_compiler.cc", |
149 "bpf_dsl/policy_compiler.h", | 151 "bpf_dsl/policy_compiler.h", |
150 "bpf_dsl/trap_registry.h", | 152 "bpf_dsl/trap_registry.h", |
151 "seccomp-bpf/basicblock.cc", | 153 "seccomp-bpf/basicblock.cc", |
152 "seccomp-bpf/basicblock.h", | 154 "seccomp-bpf/basicblock.h", |
153 "seccomp-bpf/codegen.cc", | 155 "seccomp-bpf/codegen.cc", |
154 "seccomp-bpf/codegen.h", | 156 "seccomp-bpf/codegen.h", |
155 "seccomp-bpf/die.cc", | 157 "seccomp-bpf/die.cc", |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 "-std=gnu99", | 214 "-std=gnu99", |
213 # These files have a suspicious comparison. | 215 # These files have a suspicious comparison. |
214 # TODO fix this and re-enable this warning. | 216 # TODO fix this and re-enable this warning. |
215 "-Wno-sign-compare", | 217 "-Wno-sign-compare", |
216 ] | 218 ] |
217 } | 219 } |
218 } | 220 } |
219 | 221 |
220 component("sandbox_services") { | 222 component("sandbox_services") { |
221 sources = [ | 223 sources = [ |
222 "services/broker_process.cc", | |
223 "services/broker_process.h", | |
224 "services/init_process_reaper.cc", | 224 "services/init_process_reaper.cc", |
225 "services/init_process_reaper.h", | 225 "services/init_process_reaper.h", |
226 "services/scoped_process.cc", | 226 "services/scoped_process.cc", |
227 "services/scoped_process.h", | 227 "services/scoped_process.h", |
228 "services/thread_helpers.cc", | 228 "services/thread_helpers.cc", |
229 "services/thread_helpers.h", | 229 "services/thread_helpers.h", |
230 "services/yama.h", | 230 "services/yama.h", |
231 "services/yama.cc", | 231 "services/yama.cc", |
| 232 "syscall_broker/broker_client.cc", |
| 233 "syscall_broker/broker_client.h", |
| 234 "syscall_broker/broker_common.h", |
| 235 "syscall_broker/broker_host.cc", |
| 236 "syscall_broker/broker_host.h", |
| 237 "syscall_broker/broker_policy.cc", |
| 238 "syscall_broker/broker_policy.h", |
| 239 "syscall_broker/broker_process.cc", |
| 240 "syscall_broker/broker_process.h", |
232 ] | 241 ] |
233 | 242 |
234 defines = [ "SANDBOX_IMPLEMENTATION" ] | 243 defines = [ "SANDBOX_IMPLEMENTATION" ] |
235 | 244 |
236 if (compile_credentials) { | 245 if (compile_credentials) { |
237 sources += [ | 246 sources += [ |
238 "services/credentials.cc", | 247 "services/credentials.cc", |
239 "services/credentials.h", | 248 "services/credentials.h", |
240 ] | 249 ] |
241 # For capabilities.cc. | 250 # For capabilities.cc. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 # 'type': 'none', | 325 # 'type': 'none', |
317 # 'variables': { | 326 # 'variables': { |
318 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 327 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
319 # }, | 328 # }, |
320 # 'dependencies': [ | 329 # 'dependencies': [ |
321 # 'sandbox_linux_jni_unittests', | 330 # 'sandbox_linux_jni_unittests', |
322 # ], | 331 # ], |
323 # 'includes': [ '../../build/apk_test.gypi' ], | 332 # 'includes': [ '../../build/apk_test.gypi' ], |
324 # } | 333 # } |
325 } | 334 } |
OLD | NEW |