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/linux_util.h" | 22 #include "base/linux_util.h" |
23 #include "base/memory/scoped_ptr.h" | 23 #include "base/memory/scoped_ptr.h" |
24 #include "base/path_service.h" | 24 #include "base/path_service.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 "chrome/common/chrome_paths.h" | 31 #include "chrome/common/chrome_paths.h" |
32 #include "chrome/common/chrome_switches.h" | |
33 #include "content/common/chrome_descriptors.h" | 32 #include "content/common/chrome_descriptors.h" |
| 33 #include "content/common/content_switches.h" |
34 #include "content/common/font_config_ipc_linux.h" | 34 #include "content/common/font_config_ipc_linux.h" |
35 #include "content/common/main_function_params.h" | 35 #include "content/common/main_function_params.h" |
36 #include "content/common/pepper_plugin_registry.h" | 36 #include "content/common/pepper_plugin_registry.h" |
37 #include "content/common/process_watcher.h" | 37 #include "content/common/process_watcher.h" |
38 #include "content/common/result_codes.h" | 38 #include "content/common/result_codes.h" |
39 #include "content/common/sandbox_methods_linux.h" | 39 #include "content/common/sandbox_methods_linux.h" |
40 #include "content/common/set_process_title.h" | 40 #include "content/common/set_process_title.h" |
41 #include "content/common/unix_domain_socket_posix.h" | 41 #include "content/common/unix_domain_socket_posix.h" |
42 #include "media/base/media.h" | 42 #include "media/base/media.h" |
43 #include "seccompsandbox/sandbox.h" | 43 #include "seccompsandbox/sandbox.h" |
(...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 VLOG(1) << "Enabling experimental Seccomp sandbox."; | 766 VLOG(1) << "Enabling experimental Seccomp sandbox."; |
767 sandbox_flags |= ZygoteHost::kSandboxSeccomp; | 767 sandbox_flags |= ZygoteHost::kSandboxSeccomp; |
768 } | 768 } |
769 } | 769 } |
770 #endif // SECCOMP_SANDBOX | 770 #endif // SECCOMP_SANDBOX |
771 | 771 |
772 Zygote zygote(sandbox_flags); | 772 Zygote zygote(sandbox_flags); |
773 // This function call can return multiple times, once per fork(). | 773 // This function call can return multiple times, once per fork(). |
774 return zygote.ProcessRequests(); | 774 return zygote.ProcessRequests(); |
775 } | 775 } |
OLD | NEW |