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

Side by Side Diff: sandbox/linux/sandbox_linux.gypi

Issue 226083005: Linux sandbox: componentize almost everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update dependencies. Created 6 years, 8 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/seccomp-bpf-helpers/baseline_policy.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 'conditions': [ 7 'conditions': [
8 ['OS=="linux"', { 8 ['OS=="linux"', {
9 'compile_suid_client': 1, 9 'compile_suid_client': 1,
10 'compile_credentials': 1, 10 'compile_credentials': 1,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 ], 112 ],
113 'defines': [ 113 'defines': [
114 'SANDBOX_IMPLEMENTATION', 114 'SANDBOX_IMPLEMENTATION',
115 ], 115 ],
116 'include_dirs': [ 116 'include_dirs': [
117 '../..', 117 '../..',
118 ], 118 ],
119 }, 119 },
120 { 120 {
121 'target_name': 'seccomp_bpf_helpers', 121 'target_name': 'seccomp_bpf_helpers',
122 'type': 'static_library', 122 'type': '<(component)',
123 'sources': [ 123 'sources': [
124 'seccomp-bpf-helpers/baseline_policy.cc', 124 'seccomp-bpf-helpers/baseline_policy.cc',
125 'seccomp-bpf-helpers/baseline_policy.h', 125 'seccomp-bpf-helpers/baseline_policy.h',
126 'seccomp-bpf-helpers/sigsys_handlers.cc', 126 'seccomp-bpf-helpers/sigsys_handlers.cc',
127 'seccomp-bpf-helpers/sigsys_handlers.h', 127 'seccomp-bpf-helpers/sigsys_handlers.h',
128 'seccomp-bpf-helpers/syscall_parameters_restrictions.cc', 128 'seccomp-bpf-helpers/syscall_parameters_restrictions.cc',
129 'seccomp-bpf-helpers/syscall_parameters_restrictions.h', 129 'seccomp-bpf-helpers/syscall_parameters_restrictions.h',
130 'seccomp-bpf-helpers/syscall_sets.cc', 130 'seccomp-bpf-helpers/syscall_sets.cc',
131 'seccomp-bpf-helpers/syscall_sets.h', 131 'seccomp-bpf-helpers/syscall_sets.h',
132 ], 132 ],
133 'dependencies': [ 133 'dependencies': [
134 '../base/base.gyp:base',
135 'seccomp_bpf',
136 ],
137 'defines': [
138 'SANDBOX_IMPLEMENTATION',
134 ], 139 ],
135 'include_dirs': [ 140 'include_dirs': [
136 '../..', 141 '../..',
137 ], 142 ],
138 }, 143 },
139 { 144 {
140 # A demonstration program for the seccomp-bpf sandbox. 145 # A demonstration program for the seccomp-bpf sandbox.
141 'target_name': 'seccomp_bpf_demo', 146 'target_name': 'seccomp_bpf_demo',
142 'conditions': [ 147 'conditions': [
143 ['compile_seccomp_bpf_demo==1', { 148 ['compile_seccomp_bpf_demo==1', {
(...skipping 27 matching lines...) Expand all
171 ], 176 ],
172 'cflags': [ 177 'cflags': [
173 # For ULLONG_MAX 178 # For ULLONG_MAX
174 '-std=gnu99', 179 '-std=gnu99',
175 ], 180 ],
176 'include_dirs': [ 181 'include_dirs': [
177 '../..', 182 '../..',
178 ], 183 ],
179 }, 184 },
180 { 'target_name': 'sandbox_services', 185 { 'target_name': 'sandbox_services',
181 'type': 'static_library', 186 'type': '<(component)',
182 'sources': [ 187 'sources': [
183 'services/broker_process.cc', 188 'services/broker_process.cc',
184 'services/broker_process.h', 189 'services/broker_process.h',
185 'services/init_process_reaper.cc', 190 'services/init_process_reaper.cc',
186 'services/init_process_reaper.h', 191 'services/init_process_reaper.h',
187 'services/scoped_process.cc', 192 'services/scoped_process.cc',
188 'services/scoped_process.h', 193 'services/scoped_process.h',
189 'services/thread_helpers.cc', 194 'services/thread_helpers.cc',
190 'services/thread_helpers.h', 195 'services/thread_helpers.h',
191 'services/yama.h', 196 'services/yama.h',
192 'services/yama.cc', 197 'services/yama.cc',
193 ], 198 ],
194 'dependencies': [ 199 'dependencies': [
195 '../base/base.gyp:base', 200 '../base/base.gyp:base',
196 ], 201 ],
202 'defines': [
203 'SANDBOX_IMPLEMENTATION',
204 ],
197 'conditions': [ 205 'conditions': [
198 ['compile_credentials==1', { 206 ['compile_credentials==1', {
199 'sources': [ 207 'sources': [
200 'services/credentials.cc', 208 'services/credentials.cc',
201 'services/credentials.h', 209 'services/credentials.h',
202 ], 210 ],
203 'dependencies': [ 211 'dependencies': [
204 # for capabilities.cc. 212 # for capabilities.cc.
205 '../build/linux/system.gyp:libcap', 213 '../build/linux/system.gyp:libcap',
206 ], 214 ],
(...skipping 29 matching lines...) Expand all
236 ], 244 ],
237 'dependencies': [ 245 'dependencies': [
238 '../base/base.gyp:base', 246 '../base/base.gyp:base',
239 ], 247 ],
240 'include_dirs': [ 248 'include_dirs': [
241 '..', 249 '..',
242 ], 250 ],
243 }, 251 },
244 { 252 {
245 'target_name': 'suid_sandbox_client', 253 'target_name': 'suid_sandbox_client',
246 'type': 'static_library', 254 'type': '<(component)',
247 'sources': [ 255 'sources': [
248 'suid/common/sandbox.h', 256 'suid/common/sandbox.h',
249 'suid/common/suid_unsafe_environment_variables.h', 257 'suid/common/suid_unsafe_environment_variables.h',
250 'suid/client/setuid_sandbox_client.cc', 258 'suid/client/setuid_sandbox_client.cc',
251 'suid/client/setuid_sandbox_client.h', 259 'suid/client/setuid_sandbox_client.h',
252 ], 260 ],
261 'defines': [
262 'SANDBOX_IMPLEMENTATION',
263 ],
253 'dependencies': [ 264 'dependencies': [
254 '../base/base.gyp:base', 265 '../base/base.gyp:base',
255 'sandbox_services', 266 'sandbox_services',
256 ], 267 ],
257 'include_dirs': [ 268 'include_dirs': [
258 '..', 269 '..',
259 ], 270 ],
260 }, 271 },
261 ], 272 ],
262 'conditions': [ 273 'conditions': [
(...skipping 27 matching lines...) Expand all
290 }, 301 },
291 'dependencies': [ 302 'dependencies': [
292 'sandbox_linux_jni_unittests', 303 'sandbox_linux_jni_unittests',
293 ], 304 ],
294 'includes': [ '../../build/apk_test.gypi' ], 305 'includes': [ '../../build/apk_test.gypi' ],
295 } 306 }
296 ], 307 ],
297 }], 308 }],
298 ], 309 ],
299 } 310 }
OLDNEW
« no previous file with comments | « no previous file | sandbox/linux/seccomp-bpf-helpers/baseline_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698