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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 ":seccomp_bpf", | 185 ":seccomp_bpf", |
186 ] | 186 ] |
187 } | 187 } |
188 | 188 |
189 if (is_linux) { | 189 if (is_linux) { |
190 # The setuid sandbox for Linux. | 190 # The setuid sandbox for Linux. |
191 executable("chrome_sandbox") { | 191 executable("chrome_sandbox") { |
192 sources = [ | 192 sources = [ |
193 "suid/common/sandbox.h", | 193 "suid/common/sandbox.h", |
194 "suid/common/suid_unsafe_environment_variables.h", | 194 "suid/common/suid_unsafe_environment_variables.h", |
195 "suid/linux_util.c", | |
196 "suid/linux_util.h", | |
197 "suid/process_util.h", | 195 "suid/process_util.h", |
198 "suid/process_util_linux.c", | 196 "suid/process_util_linux.c", |
199 "suid/sandbox.c", | 197 "suid/sandbox.c", |
200 ] | 198 ] |
201 | 199 |
202 cflags = [ | 200 cflags = [ |
203 # For ULLONG_MAX | 201 # For ULLONG_MAX |
204 "-std=gnu99", | 202 "-std=gnu99", |
205 # These files have a suspicious comparison. | 203 # These files have a suspicious comparison. |
206 # TODO fix this and re-enable this warning. | 204 # TODO fix this and re-enable this warning. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 # 'type': 'none', | 306 # 'type': 'none', |
309 # 'variables': { | 307 # 'variables': { |
310 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 308 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
311 # }, | 309 # }, |
312 # 'dependencies': [ | 310 # 'dependencies': [ |
313 # 'sandbox_linux_jni_unittests', | 311 # 'sandbox_linux_jni_unittests', |
314 # ], | 312 # ], |
315 # 'includes': [ '../../build/apk_test.gypi' ], | 313 # 'includes': [ '../../build/apk_test.gypi' ], |
316 # } | 314 # } |
317 } | 315 } |
OLD | NEW |