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

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

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros Created 5 years 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
« no previous file with comments | « sandbox/linux/suid/sandbox.c ('k') | sandbox/linux/syscall_broker/broker_file_permission.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_client.h" 5 #include "sandbox/linux/syscall_broker/broker_client.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <stddef.h>
10 #include <stdint.h>
11 #include <sys/socket.h>
9 #include <sys/stat.h> 12 #include <sys/stat.h>
10 #include <sys/socket.h>
11 #include <sys/types.h> 13 #include <sys/types.h>
12 #include <utility> 14 #include <utility>
13 15
14 #include "build/build_config.h"
15 #include "base/logging.h" 16 #include "base/logging.h"
16 #include "base/pickle.h" 17 #include "base/pickle.h"
17 #include "base/posix/unix_domain_socket_linux.h" 18 #include "base/posix/unix_domain_socket_linux.h"
19 #include "build/build_config.h"
18 #include "sandbox/linux/syscall_broker/broker_channel.h" 20 #include "sandbox/linux/syscall_broker/broker_channel.h"
19 #include "sandbox/linux/syscall_broker/broker_common.h" 21 #include "sandbox/linux/syscall_broker/broker_common.h"
20 #include "sandbox/linux/syscall_broker/broker_policy.h" 22 #include "sandbox/linux/syscall_broker/broker_policy.h"
21 23
22 #if defined(OS_ANDROID) && !defined(MSG_CMSG_CLOEXEC) 24 #if defined(OS_ANDROID) && !defined(MSG_CMSG_CLOEXEC)
23 #define MSG_CMSG_CLOEXEC 0x40000000 25 #define MSG_CMSG_CLOEXEC 0x40000000
24 #endif 26 #endif
25 27
26 namespace sandbox { 28 namespace sandbox {
27 29
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return PathAndFlagsSyscall(COMMAND_ACCESS, pathname, mode); 137 return PathAndFlagsSyscall(COMMAND_ACCESS, pathname, mode);
136 } 138 }
137 139
138 int BrokerClient::Open(const char* pathname, int flags) const { 140 int BrokerClient::Open(const char* pathname, int flags) const {
139 return PathAndFlagsSyscall(COMMAND_OPEN, pathname, flags); 141 return PathAndFlagsSyscall(COMMAND_OPEN, pathname, flags);
140 } 142 }
141 143
142 } // namespace syscall_broker 144 } // namespace syscall_broker
143 145
144 } // namespace sandbox 146 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/suid/sandbox.c ('k') | sandbox/linux/syscall_broker/broker_file_permission.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698