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 15 matching lines...) Expand all Loading... |
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/font_config_ipc_linux.h" | 32 #include "content/common/font_config_ipc_linux.h" |
33 #include "content/common/main_function_params.h" | 33 #include "content/common/main_function_params.h" |
34 #include "content/common/pepper_plugin_registry.h" | 34 #include "content/common/pepper_plugin_registry.h" |
35 #include "content/common/process_watcher.h" | 35 #include "content/common/process_watcher.h" |
36 #include "content/common/result_codes.h" | |
37 #include "content/common/sandbox_methods_linux.h" | 36 #include "content/common/sandbox_methods_linux.h" |
38 #include "content/common/seccomp_sandbox.h" | 37 #include "content/common/seccomp_sandbox.h" |
39 #include "content/common/set_process_title.h" | 38 #include "content/common/set_process_title.h" |
40 #include "content/common/unix_domain_socket_posix.h" | 39 #include "content/common/unix_domain_socket_posix.h" |
41 #include "content/common/zygote_fork_delegate_linux.h" | 40 #include "content/common/zygote_fork_delegate_linux.h" |
42 #include "content/public/common/content_switches.h" | 41 #include "content/public/common/content_switches.h" |
| 42 #include "content/public/common/result_codes.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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 VLOG(1) << "Enabling experimental Seccomp sandbox."; | 865 VLOG(1) << "Enabling experimental Seccomp sandbox."; |
866 sandbox_flags |= ZygoteHost::kSandboxSeccomp; | 866 sandbox_flags |= ZygoteHost::kSandboxSeccomp; |
867 } | 867 } |
868 } | 868 } |
869 #endif // SECCOMP_SANDBOX | 869 #endif // SECCOMP_SANDBOX |
870 | 870 |
871 Zygote zygote(sandbox_flags, forkdelegate); | 871 Zygote zygote(sandbox_flags, forkdelegate); |
872 // This function call can return multiple times, once per fork(). | 872 // This function call can return multiple times, once per fork(). |
873 return zygote.ProcessRequests(); | 873 return zygote.ProcessRequests(); |
874 } | 874 } |
OLD | NEW |