OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <dlfcn.h> | 5 #include <dlfcn.h> |
6 #include <fcntl.h> | 6 #include <fcntl.h> |
7 #include <pthread.h> | 7 #include <pthread.h> |
8 #include <sys/epoll.h> | 8 #include <sys/epoll.h> |
9 #include <sys/prctl.h> | 9 #include <sys/prctl.h> |
10 #include <sys/signal.h> | 10 #include <sys/signal.h> |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "base/hash_tables.h" | 29 #include "base/hash_tables.h" |
30 #include "base/linux_util.h" | 30 #include "base/linux_util.h" |
31 #include "base/nss_util.h" | 31 #include "base/nss_util.h" |
32 #include "base/path_service.h" | 32 #include "base/path_service.h" |
33 #include "base/pickle.h" | 33 #include "base/pickle.h" |
34 #include "base/process_util.h" | 34 #include "base/process_util.h" |
35 #include "base/rand_util.h" | 35 #include "base/rand_util.h" |
36 #include "base/scoped_ptr.h" | 36 #include "base/scoped_ptr.h" |
37 #include "base/sys_info.h" | 37 #include "base/sys_info.h" |
38 #include "build/build_config.h" | 38 #include "build/build_config.h" |
39 #include "chrome/common/chrome_descriptors.h" | |
40 #include "chrome/common/chrome_paths.h" | 39 #include "chrome/common/chrome_paths.h" |
41 #include "chrome/common/chrome_switches.h" | 40 #include "chrome/common/chrome_switches.h" |
42 #include "chrome/common/pepper_plugin_registry.h" | 41 #include "chrome/common/pepper_plugin_registry.h" |
| 42 #include "content/common/chrome_descriptors.h" |
43 #include "content/common/font_config_ipc_linux.h" | 43 #include "content/common/font_config_ipc_linux.h" |
44 #include "content/common/main_function_params.h" | 44 #include "content/common/main_function_params.h" |
45 #include "content/common/process_watcher.h" | 45 #include "content/common/process_watcher.h" |
46 #include "content/common/result_codes.h" | 46 #include "content/common/result_codes.h" |
47 #include "content/common/sandbox_methods_linux.h" | 47 #include "content/common/sandbox_methods_linux.h" |
48 #include "content/common/set_process_title.h" | 48 #include "content/common/set_process_title.h" |
49 #include "content/common/unix_domain_socket_posix.h" | 49 #include "content/common/unix_domain_socket_posix.h" |
50 #include "media/base/media.h" | 50 #include "media/base/media.h" |
51 #include "seccompsandbox/sandbox.h" | 51 #include "seccompsandbox/sandbox.h" |
52 #include "skia/ext/SkFontHost_fontconfig_control.h" | 52 #include "skia/ext/SkFontHost_fontconfig_control.h" |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 VLOG(1) << "Enabling experimental Seccomp sandbox."; | 759 VLOG(1) << "Enabling experimental Seccomp sandbox."; |
760 sandbox_flags |= ZygoteHost::kSandboxSeccomp; | 760 sandbox_flags |= ZygoteHost::kSandboxSeccomp; |
761 } | 761 } |
762 } | 762 } |
763 #endif // SECCOMP_SANDBOX | 763 #endif // SECCOMP_SANDBOX |
764 | 764 |
765 Zygote zygote(sandbox_flags); | 765 Zygote zygote(sandbox_flags); |
766 // This function call can return multiple times, once per fork(). | 766 // This function call can return multiple times, once per fork(). |
767 return zygote.ProcessRequests(); | 767 return zygote.ProcessRequests(); |
768 } | 768 } |
OLD | NEW |