diff options
author | hidehiko <hidehiko@chromium.org> | 2015-05-27 10:38:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-27 17:39:27 +0000 |
commit | 9c3ef1460e6a8aefbd3ac6041e728d7f087c828a (patch) | |
tree | 21f6f7132f1623b2fdb2667409d9dec413a96688 /sandbox | |
parent | be0bb6d0ee64a0e1244ee017d819e36d1e0101eb (diff) | |
download | chromium_src-9c3ef1460e6a8aefbd3ac6041e728d7f087c828a.zip chromium_src-9c3ef1460e6a8aefbd3ac6041e728d7f087c828a.tar.gz chromium_src-9c3ef1460e6a8aefbd3ac6041e728d7f087c828a.tar.bz2 |
Non-SFI mode: Rename sandbox_nacl_nonsfi to sandbox_linux_nacl_nonsfi.
Also, this CL moves the gyp file from sandbox/ to sandbox/linux.
TEST=Ran bots.
BUG=358465
TBR=jln@chromium.org
Review URL: https://codereview.chromium.org/1156493005
Cr-Commit-Position: refs/heads/master@{#331596}
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/linux/sandbox_linux_nacl_nonsfi.gyp | 88 | ||||
-rw-r--r-- | sandbox/sandbox_nacl_nonsfi.gyp | 88 |
2 files changed, 88 insertions, 88 deletions
diff --git a/sandbox/linux/sandbox_linux_nacl_nonsfi.gyp b/sandbox/linux/sandbox_linux_nacl_nonsfi.gyp new file mode 100644 index 0000000..87ad06c --- /dev/null +++ b/sandbox/linux/sandbox_linux_nacl_nonsfi.gyp @@ -0,0 +1,88 @@ +# Copyright 2015 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'variables': { + 'chromium_code': 1, + }, + 'includes': [ + '../../build/common_untrusted.gypi', + ], + 'conditions': [ + ['disable_nacl==0 and disable_nacl_untrusted==0', { + 'targets': [ + { + 'target_name': 'sandbox_linux_nacl_nonsfi', + 'type': 'none', + 'variables': { + 'nacl_untrusted_build': 1, + 'nlib_target': 'libsandbox_linux_nacl_nonsfi.a', + 'build_glibc': 0, + 'build_newlib': 0, + 'build_irt': 0, + 'build_pnacl_newlib': 0, + 'build_nonsfi_helper': 1, + + 'sources': [ + # This is the subset of linux build target, needed for + # nacl_helper_nonsfi's sandbox implementation. + 'bpf_dsl/bpf_dsl.cc', + 'bpf_dsl/codegen.cc', + 'bpf_dsl/dump_bpf.cc', + 'bpf_dsl/policy.cc', + 'bpf_dsl/policy_compiler.cc', + 'bpf_dsl/syscall_set.cc', + 'bpf_dsl/verifier.cc', + 'seccomp-bpf-helpers/sigsys_handlers.cc', + 'seccomp-bpf-helpers/syscall_parameters_restrictions.cc', + 'seccomp-bpf/die.cc', + 'seccomp-bpf/errorcode.cc', + 'seccomp-bpf/sandbox_bpf.cc', + 'seccomp-bpf/syscall.cc', + 'seccomp-bpf/trap.cc', + 'services/credentials.cc', + 'services/namespace_sandbox.cc', + 'services/namespace_utils.cc', + 'services/proc_util.cc', + 'services/resource_limits.cc', + 'services/syscall_wrappers.cc', + 'services/thread_helpers.cc', + 'suid/client/setuid_sandbox_client.cc', + ], + }, + 'dependencies': [ + '../../base/base_nacl.gyp:base_nacl_nonsfi', + ], + }, + ], + }], + + ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_test==1', { + 'targets': [ + { + 'target_name': 'sandbox_linux_test_utils_nacl_nonsfi', + 'type': 'none', + 'variables': { + 'nacl_untrusted_build': 1, + 'nlib_target': 'libsandbox_linux_test_utils_nacl_nonsfi.a', + 'build_glibc': 0, + 'build_newlib': 0, + 'build_irt': 0, + 'build_pnacl_newlib': 0, + 'build_nonsfi_helper': 1, + + 'sources': [ + 'seccomp-bpf/sandbox_bpf_test_runner.cc', + 'tests/sandbox_test_runner.cc', + 'tests/unit_tests.cc', + ], + }, + 'dependencies': [ + '../../testing/gtest_nacl.gyp:gtest_nacl', + ], + }, + ], + }], + ], +} diff --git a/sandbox/sandbox_nacl_nonsfi.gyp b/sandbox/sandbox_nacl_nonsfi.gyp deleted file mode 100644 index 6ece2c2..0000000 --- a/sandbox/sandbox_nacl_nonsfi.gyp +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 2015 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -{ - 'variables': { - 'chromium_code': 1, - }, - 'includes': [ - '../build/common_untrusted.gypi', - ], - 'conditions': [ - ['disable_nacl==0 and disable_nacl_untrusted==0', { - 'targets': [ - { - 'target_name': 'sandbox_nacl_nonsfi', - 'type': 'none', - 'variables': { - 'nacl_untrusted_build': 1, - 'nlib_target': 'libsandbox_nacl_nonsfi.a', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_irt': 0, - 'build_pnacl_newlib': 0, - 'build_nonsfi_helper': 1, - - 'sources': [ - # This is the subset of linux build target, needed for - # nacl_helper_nonsfi's sandbox implementation. - 'linux/bpf_dsl/bpf_dsl.cc', - 'linux/bpf_dsl/codegen.cc', - 'linux/bpf_dsl/dump_bpf.cc', - 'linux/bpf_dsl/policy.cc', - 'linux/bpf_dsl/policy_compiler.cc', - 'linux/bpf_dsl/syscall_set.cc', - 'linux/bpf_dsl/verifier.cc', - 'linux/seccomp-bpf-helpers/sigsys_handlers.cc', - 'linux/seccomp-bpf-helpers/syscall_parameters_restrictions.cc', - 'linux/seccomp-bpf/die.cc', - 'linux/seccomp-bpf/errorcode.cc', - 'linux/seccomp-bpf/sandbox_bpf.cc', - 'linux/seccomp-bpf/syscall.cc', - 'linux/seccomp-bpf/trap.cc', - 'linux/services/credentials.cc', - 'linux/services/namespace_sandbox.cc', - 'linux/services/namespace_utils.cc', - 'linux/services/proc_util.cc', - 'linux/services/resource_limits.cc', - 'linux/services/syscall_wrappers.cc', - 'linux/services/thread_helpers.cc', - 'linux/suid/client/setuid_sandbox_client.cc', - ], - }, - 'dependencies': [ - '../base/base_nacl.gyp:base_nacl_nonsfi', - ], - }, - ], - }], - - ['disable_nacl==0 and disable_nacl_untrusted==0 and enable_nacl_nonsfi_test==1', { - 'targets': [ - { - 'target_name': 'sandbox_linux_test_utils_nacl_nonsfi', - 'type': 'none', - 'variables': { - 'nacl_untrusted_build': 1, - 'nlib_target': 'libsandbox_linux_test_utils_nacl_nonsfi.a', - 'build_glibc': 0, - 'build_newlib': 0, - 'build_irt': 0, - 'build_pnacl_newlib': 0, - 'build_nonsfi_helper': 1, - - 'sources': [ - 'linux/seccomp-bpf/sandbox_bpf_test_runner.cc', - 'linux/tests/sandbox_test_runner.cc', - 'linux/tests/unit_tests.cc', - ], - }, - 'dependencies': [ - '../testing/gtest_nacl.gyp:gtest_nacl', - ], - }, - ], - }], - ], -} |