| 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", | 195 "suid/linux_util.h", |
| 197 "suid/process_util.h", | 196 "suid/process_util.h", |
| 198 "suid/process_util_linux.c", | 197 "suid/process_util_linux.c", |
| 199 "suid/sandbox.c", | 198 "suid/sandbox.c", |
| 200 ] | 199 ] |
| 201 | 200 |
| 202 cflags = [ | 201 cflags = [ |
| 203 # For ULLONG_MAX | 202 # For ULLONG_MAX |
| 204 "-std=gnu99", | 203 "-std=gnu99", |
| 205 # These files have a suspicious comparison. | 204 # These files have a suspicious comparison. |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 # 'type': 'none', | 307 # 'type': 'none', |
| 309 # 'variables': { | 308 # 'variables': { |
| 310 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 309 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
| 311 # }, | 310 # }, |
| 312 # 'dependencies': [ | 311 # 'dependencies': [ |
| 313 # 'sandbox_linux_jni_unittests', | 312 # 'sandbox_linux_jni_unittests', |
| 314 # ], | 313 # ], |
| 315 # 'includes': [ '../../build/apk_test.gypi' ], | 314 # 'includes': [ '../../build/apk_test.gypi' ], |
| 316 # } | 315 # } |
| 317 } | 316 } |
| OLD | NEW |