Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: sandbox/linux/syscall_broker/broker_host.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sandbox/linux/syscall_broker/DEPS ('k') | sandbox/linux/system_headers/android_arm64_ucontext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698