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 "sandbox/linux/syscall_broker/broker_process.h" | 5 #include "sandbox/linux/syscall_broker/broker_process.h" |
6 | 6 |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <signal.h> | 8 #include <signal.h> |
9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
10 #include <sys/syscall.h> | 10 #include <sys/syscall.h> |
11 #include <sys/types.h> | 11 #include <sys/types.h> |
12 #include <sys/wait.h> | 12 #include <sys/wait.h> |
13 #include <unistd.h> | 13 #include <unistd.h> |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 #include <string> | 16 #include <string> |
17 #include <utility> | 17 #include <utility> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "base/callback.h" | 20 #include "base/callback.h" |
21 #include "base/logging.h" | 21 #include "base/logging.h" |
22 #include "base/memory/scoped_ptr.h" | |
23 #include "base/posix/eintr_wrapper.h" | 22 #include "base/posix/eintr_wrapper.h" |
24 #include "base/process/process_metrics.h" | 23 #include "base/process/process_metrics.h" |
25 #include "build/build_config.h" | 24 #include "build/build_config.h" |
26 #include "sandbox/linux/syscall_broker/broker_channel.h" | 25 #include "sandbox/linux/syscall_broker/broker_channel.h" |
27 #include "sandbox/linux/syscall_broker/broker_client.h" | 26 #include "sandbox/linux/syscall_broker/broker_client.h" |
28 #include "sandbox/linux/syscall_broker/broker_host.h" | 27 #include "sandbox/linux/syscall_broker/broker_host.h" |
29 | 28 |
30 namespace sandbox { | 29 namespace sandbox { |
31 | 30 |
32 namespace syscall_broker { | 31 namespace syscall_broker { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 111 } |
113 | 112 |
114 int BrokerProcess::Open(const char* pathname, int flags) const { | 113 int BrokerProcess::Open(const char* pathname, int flags) const { |
115 RAW_CHECK(initialized_); | 114 RAW_CHECK(initialized_); |
116 return broker_client_->Open(pathname, flags); | 115 return broker_client_->Open(pathname, flags); |
117 } | 116 } |
118 | 117 |
119 } // namespace syscall_broker | 118 } // namespace syscall_broker |
120 | 119 |
121 } // namespace sandbox. | 120 } // namespace sandbox. |
OLD | NEW |