| 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 <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 20 matching lines...) Expand all Loading... |
| 31 #include "base/memory/scoped_ptr.h" | 31 #include "base/memory/scoped_ptr.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/sys_info.h" | 36 #include "base/sys_info.h" |
| 37 #include "build/build_config.h" | 37 #include "build/build_config.h" |
| 38 #include "crypto/nss_util.h" | 38 #include "crypto/nss_util.h" |
| 39 #include "chrome/common/chrome_paths.h" | 39 #include "chrome/common/chrome_paths.h" |
| 40 #include "chrome/common/chrome_switches.h" | 40 #include "chrome/common/chrome_switches.h" |
| 41 #include "chrome/common/pepper_plugin_registry.h" | |
| 42 #include "content/common/chrome_descriptors.h" | 41 #include "content/common/chrome_descriptors.h" |
| 43 #include "content/common/font_config_ipc_linux.h" | 42 #include "content/common/font_config_ipc_linux.h" |
| 44 #include "content/common/main_function_params.h" | 43 #include "content/common/main_function_params.h" |
| 44 #include "content/common/pepper_plugin_registry.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" |
| 53 #include "unicode/timezone.h" | 53 #include "unicode/timezone.h" |
| 54 | 54 |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 VLOG(1) << "Enabling experimental Seccomp sandbox."; | 761 VLOG(1) << "Enabling experimental Seccomp sandbox."; |
| 762 sandbox_flags |= ZygoteHost::kSandboxSeccomp; | 762 sandbox_flags |= ZygoteHost::kSandboxSeccomp; |
| 763 } | 763 } |
| 764 } | 764 } |
| 765 #endif // SECCOMP_SANDBOX | 765 #endif // SECCOMP_SANDBOX |
| 766 | 766 |
| 767 Zygote zygote(sandbox_flags); | 767 Zygote zygote(sandbox_flags); |
| 768 // This function call can return multiple times, once per fork(). | 768 // This function call can return multiple times, once per fork(). |
| 769 return zygote.ProcessRequests(); | 769 return zygote.ProcessRequests(); |
| 770 } | 770 } |
| OLD | NEW |