OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/zygote/zygote_linux.h" | 5 #include "content/zygote/zygote_linux.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <string.h> | 8 #include <string.h> |
9 #include <sys/socket.h> | 9 #include <sys/socket.h> |
10 #include <sys/types.h> | 10 #include <sys/types.h> |
11 #include <sys/wait.h> | 11 #include <sys/wait.h> |
12 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "ipc/ipc_switches.h" | 14 #include "ipc/ipc_switches.h" |
15 #include "content/public/common/sandbox_linux.h" | 15 #include "content/public/common/sandbox_linux.h" |
16 #include "base/process_util.h" | 16 #include "base/process_util.h" |
17 #include "content/public/common/result_codes.h" | 17 #include "content/public/common/result_codes.h" |
18 #include "ipc/ipc_channel.h" | 18 #include "ipc/ipc_channel.h" |
19 #include "base/debug/trace_event.h" | 19 #include "base/debug/trace_event.h" |
20 #include "base/file_util.h" | 20 #include "base/file_util.h" |
21 #include "base/linux_util.h" | 21 #include "base/linux_util.h" |
22 #include "base/eintr_wrapper.h" | 22 #include "base/eintr_wrapper.h" |
23 #include "base/global_descriptors_posix.h" | |
24 #include "base/logging.h" | 23 #include "base/logging.h" |
25 #include "base/pickle.h" | 24 #include "base/pickle.h" |
| 25 #include "base/posix/global_descriptors.h" |
26 #include "base/posix/unix_domain_socket.h" | 26 #include "base/posix/unix_domain_socket.h" |
27 #include "content/common/set_process_title.h" | 27 #include "content/common/set_process_title.h" |
28 #include "content/common/sandbox_linux.h" | 28 #include "content/common/sandbox_linux.h" |
29 #include "content/common/zygote_commands_linux.h" | 29 #include "content/common/zygote_commands_linux.h" |
30 #include "content/public/common/content_descriptors.h" | 30 #include "content/public/common/content_descriptors.h" |
31 #include "content/public/common/zygote_fork_delegate_linux.h" | 31 #include "content/public/common/zygote_fork_delegate_linux.h" |
32 | 32 |
33 #if defined(CHROMIUM_SELINUX) | 33 #if defined(CHROMIUM_SELINUX) |
34 #include <selinux/selinux.h> | 34 #include <selinux/selinux.h> |
35 #include <selinux/context.h> | 35 #include <selinux/context.h> |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 PickleIterator iter) { | 490 PickleIterator iter) { |
491 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != | 491 if (HANDLE_EINTR(write(fd, &sandbox_flags_, sizeof(sandbox_flags_))) != |
492 sizeof(sandbox_flags_)) { | 492 sizeof(sandbox_flags_)) { |
493 PLOG(ERROR) << "write"; | 493 PLOG(ERROR) << "write"; |
494 } | 494 } |
495 | 495 |
496 return false; | 496 return false; |
497 } | 497 } |
498 | 498 |
499 } // namespace content | 499 } // namespace content |
OLD | NEW |