| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_host.h" | 5 #include "sandbox/linux/syscall_broker/broker_host.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <sys/socket.h> | 8 #include <sys/socket.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 <unistd.h> | 12 #include <unistd.h> |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 #include <vector> | 15 #include <vector> |
| 16 | 16 |
| 17 #include "base/files/scoped_file.h" | 17 #include "base/files/scoped_file.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/pickle.h" | 19 #include "base/pickle.h" |
| 20 #include "base/posix/eintr_wrapper.h" | 20 #include "base/posix/eintr_wrapper.h" |
| 21 #include "base/posix/unix_domain_socket_linux.h" | 21 #include "base/posix/unix_domain_socket_linux.h" |
| 22 #include "base/third_party/valgrind/valgrind.h" | 22 #include "base/third_party/valgrind/valgrind.h" |
| 23 #include "sandbox/linux/services/linux_syscalls.h" | |
| 24 #include "sandbox/linux/syscall_broker/broker_common.h" | 23 #include "sandbox/linux/syscall_broker/broker_common.h" |
| 25 #include "sandbox/linux/syscall_broker/broker_policy.h" | 24 #include "sandbox/linux/syscall_broker/broker_policy.h" |
| 25 #include "sandbox/linux/system_headers/linux_syscalls.h" |
| 26 | 26 |
| 27 namespace sandbox { | 27 namespace sandbox { |
| 28 | 28 |
| 29 namespace syscall_broker { | 29 namespace syscall_broker { |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 bool IsRunningOnValgrind() { | 33 bool IsRunningOnValgrind() { |
| 34 return RUNNING_ON_VALGRIND; | 34 return RUNNING_ON_VALGRIND; |
| 35 } | 35 } |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 NOTREACHED(); | 222 NOTREACHED(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 LOG(ERROR) << "Error parsing IPC request"; | 225 LOG(ERROR) << "Error parsing IPC request"; |
| 226 return RequestStatus::FAILURE; | 226 return RequestStatus::FAILURE; |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace syscall_broker | 229 } // namespace syscall_broker |
| 230 | 230 |
| 231 } // namespace sandbox | 231 } // namespace sandbox |
| OLD | NEW |