OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/zygote_host_linux.h" | 5 #include "content/browser/zygote_host_linux.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 <sys/socket.h> | 10 #include <sys/socket.h> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "base/hash_tables.h" | 22 #include "base/hash_tables.h" |
23 #include "base/linux_util.h" | 23 #include "base/linux_util.h" |
24 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
25 #include "base/pickle.h" | 25 #include "base/pickle.h" |
26 #include "base/process_util.h" | 26 #include "base/process_util.h" |
27 #include "base/rand_util.h" | 27 #include "base/rand_util.h" |
28 #include "base/sys_info.h" | 28 #include "base/sys_info.h" |
29 #include "build/build_config.h" | 29 #include "build/build_config.h" |
30 #include "crypto/nss_util.h" | 30 #include "crypto/nss_util.h" |
31 #include "content/common/chrome_descriptors.h" | 31 #include "content/common/chrome_descriptors.h" |
32 #include "content/common/content_switches.h" | |
33 #include "content/common/font_config_ipc_linux.h" | 32 #include "content/common/font_config_ipc_linux.h" |
34 #include "content/common/main_function_params.h" | 33 #include "content/common/main_function_params.h" |
35 #include "content/common/pepper_plugin_registry.h" | 34 #include "content/common/pepper_plugin_registry.h" |
36 #include "content/common/process_watcher.h" | 35 #include "content/common/process_watcher.h" |
37 #include "content/common/result_codes.h" | 36 #include "content/common/result_codes.h" |
38 #include "content/common/sandbox_methods_linux.h" | 37 #include "content/common/sandbox_methods_linux.h" |
39 #include "content/common/seccomp_sandbox.h" | 38 #include "content/common/seccomp_sandbox.h" |
40 #include "content/common/set_process_title.h" | 39 #include "content/common/set_process_title.h" |
41 #include "content/common/unix_domain_socket_posix.h" | 40 #include "content/common/unix_domain_socket_posix.h" |
42 #include "content/common/zygote_fork_delegate_linux.h" | 41 #include "content/common/zygote_fork_delegate_linux.h" |
| 42 #include "content/public/common/content_switches.h" |
43 #include "skia/ext/SkFontHost_fontconfig_control.h" | 43 #include "skia/ext/SkFontHost_fontconfig_control.h" |
44 #include "unicode/timezone.h" | 44 #include "unicode/timezone.h" |
45 #include "ipc/ipc_channel.h" | 45 #include "ipc/ipc_channel.h" |
46 #include "ipc/ipc_switches.h" | 46 #include "ipc/ipc_switches.h" |
47 | 47 |
48 #if defined(OS_LINUX) | 48 #if defined(OS_LINUX) |
49 #include <sys/epoll.h> | 49 #include <sys/epoll.h> |
50 #include <sys/prctl.h> | 50 #include <sys/prctl.h> |
51 #include <sys/signal.h> | 51 #include <sys/signal.h> |
52 #else | 52 #else |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 VLOG(1) << "Enabling experimental Seccomp sandbox."; | 822 VLOG(1) << "Enabling experimental Seccomp sandbox."; |
823 sandbox_flags |= ZygoteHost::kSandboxSeccomp; | 823 sandbox_flags |= ZygoteHost::kSandboxSeccomp; |
824 } | 824 } |
825 } | 825 } |
826 #endif // SECCOMP_SANDBOX | 826 #endif // SECCOMP_SANDBOX |
827 | 827 |
828 Zygote zygote(sandbox_flags, forkdelegate); | 828 Zygote zygote(sandbox_flags, forkdelegate); |
829 // This function call can return multiple times, once per fork(). | 829 // This function call can return multiple times, once per fork(). |
830 return zygote.ProcessRequests(); | 830 return zygote.ProcessRequests(); |
831 } | 831 } |
OLD | NEW |