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

Side by Side Diff: sandbox/linux/suid/client/setuid_sandbox_host.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 4 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/suid/client/setuid_sandbox_host.h" 5 #include "sandbox/linux/suid/client/setuid_sandbox_host.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <stddef.h>
8 #include <stdlib.h> 9 #include <stdlib.h>
9 #include <sys/stat.h> 10 #include <sys/stat.h>
10 #include <unistd.h> 11 #include <unistd.h>
11 12
12 #include <string> 13 #include <string>
13 #include <utility> 14 #include <utility>
14 15
15 #include "base/command_line.h" 16 #include "base/command_line.h"
16 #include "base/environment.h" 17 #include "base/environment.h"
17 #include "base/files/file_path.h" 18 #include "base/files/file_path.h"
18 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
19 #include "base/files/scoped_file.h" 20 #include "base/files/scoped_file.h"
20 #include "base/logging.h" 21 #include "base/logging.h"
22 #include "base/macros.h"
21 #include "base/memory/scoped_ptr.h" 23 #include "base/memory/scoped_ptr.h"
22 #include "base/path_service.h" 24 #include "base/path_service.h"
23 #include "base/posix/eintr_wrapper.h" 25 #include "base/posix/eintr_wrapper.h"
24 #include "base/process/launch.h" 26 #include "base/process/launch.h"
25 #include "base/process/process_metrics.h" 27 #include "base/process/process_metrics.h"
26 #include "base/strings/string_number_conversions.h" 28 #include "base/strings/string_number_conversions.h"
27 #include "sandbox/linux/suid/common/sandbox.h" 29 #include "sandbox/linux/suid/common/sandbox.h"
28 #include "sandbox/linux/suid/common/suid_unsafe_environment_variables.h" 30 #include "sandbox/linux/suid/common/suid_unsafe_environment_variables.h"
29 31
30 namespace { 32 namespace {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // kZygoteIdFd. Fixing this requires a sandbox API change. :( 188 // kZygoteIdFd. Fixing this requires a sandbox API change. :(
187 fds_to_remap->push_back(std::make_pair(dummy_fd->get(), kZygoteIdFd)); 189 fds_to_remap->push_back(std::make_pair(dummy_fd->get(), kZygoteIdFd));
188 } 190 }
189 191
190 void SetuidSandboxHost::SetupLaunchEnvironment() { 192 void SetuidSandboxHost::SetupLaunchEnvironment() {
191 SaveSUIDUnsafeEnvironmentVariables(env_.get()); 193 SaveSUIDUnsafeEnvironmentVariables(env_.get());
192 SetSandboxAPIEnvironmentVariable(env_.get()); 194 SetSandboxAPIEnvironmentVariable(env_.get());
193 } 195 }
194 196
195 } // namespace sandbox 197 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/services/yama.cc ('k') | sandbox/linux/suid/common/suid_unsafe_environment_variables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698