| OLD | NEW |
| 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 #include "content/zygote/zygote_main.h" | 5 #include "content/zygote/zygote_main.h" |
| 6 | 6 |
| 7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 #include <signal.h> | 10 #include <signal.h> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "base/lazy_instance.h" | 24 #include "base/lazy_instance.h" |
| 25 #include "base/native_library.h" | 25 #include "base/native_library.h" |
| 26 #include "base/pickle.h" | 26 #include "base/pickle.h" |
| 27 #include "base/posix/eintr_wrapper.h" | 27 #include "base/posix/eintr_wrapper.h" |
| 28 #include "base/posix/unix_domain_socket_linux.h" | 28 #include "base/posix/unix_domain_socket_linux.h" |
| 29 #include "base/rand_util.h" | 29 #include "base/rand_util.h" |
| 30 #include "base/strings/safe_sprintf.h" | 30 #include "base/strings/safe_sprintf.h" |
| 31 #include "base/strings/string_number_conversions.h" | 31 #include "base/strings/string_number_conversions.h" |
| 32 #include "base/sys_info.h" | 32 #include "base/sys_info.h" |
| 33 #include "build/build_config.h" | 33 #include "build/build_config.h" |
| 34 #include "content/common/child_process_sandbox_support_impl_linux.h" | |
| 35 #include "content/common/font_config_ipc_linux.h" | 34 #include "content/common/font_config_ipc_linux.h" |
| 36 #include "content/common/sandbox_linux/sandbox_debug_handling_linux.h" | 35 #include "content/common/sandbox_linux/sandbox_debug_handling_linux.h" |
| 37 #include "content/common/sandbox_linux/sandbox_linux.h" | 36 #include "content/common/sandbox_linux/sandbox_linux.h" |
| 38 #include "content/common/zygote_commands_linux.h" | 37 #include "content/common/zygote_commands_linux.h" |
| 39 #include "content/public/common/content_switches.h" | 38 #include "content/public/common/content_switches.h" |
| 40 #include "content/public/common/main_function_params.h" | 39 #include "content/public/common/main_function_params.h" |
| 41 #include "content/public/common/sandbox_linux.h" | 40 #include "content/public/common/sandbox_linux.h" |
| 42 #include "content/public/common/zygote_fork_delegate_linux.h" | 41 #include "content/public/common/zygote_fork_delegate_linux.h" |
| 43 #include "content/zygote/zygote_linux.h" | 42 #include "content/zygote/zygote_linux.h" |
| 44 #include "media/media_features.h" | 43 #include "media/media_features.h" |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 const bool namespace_sandbox_engaged = sandbox_flags & kSandboxLinuxUserNS; | 670 const bool namespace_sandbox_engaged = sandbox_flags & kSandboxLinuxUserNS; |
| 672 CHECK_EQ(using_namespace_sandbox, namespace_sandbox_engaged); | 671 CHECK_EQ(using_namespace_sandbox, namespace_sandbox_engaged); |
| 673 | 672 |
| 674 Zygote zygote(sandbox_flags, std::move(fork_delegates), extra_children, | 673 Zygote zygote(sandbox_flags, std::move(fork_delegates), extra_children, |
| 675 extra_fds); | 674 extra_fds); |
| 676 // This function call can return multiple times, once per fork(). | 675 // This function call can return multiple times, once per fork(). |
| 677 return zygote.ProcessRequests(); | 676 return zygote.ProcessRequests(); |
| 678 } | 677 } |
| 679 | 678 |
| 680 } // namespace content | 679 } // namespace content |
| OLD | NEW |