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

Side by Side Diff: sandbox/linux/suid/client/setuid_sandbox_client.cc

Issue 16358024: Use a direct include of strings headers in rlz/, sandbox/, skia/, sql/, sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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 <sys/types.h> 5 #include <sys/types.h>
6 #include <sys/wait.h> 6 #include <sys/wait.h>
7 #include <unistd.h> 7 #include <unistd.h>
8 8
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/posix/eintr_wrapper.h" 12 #include "base/posix/eintr_wrapper.h"
13 #include "base/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 14
15 #include "sandbox/linux/suid/common/sandbox.h" 15 #include "sandbox/linux/suid/common/sandbox.h"
16 #include "sandbox/linux/suid/common/suid_unsafe_environment_variables.h" 16 #include "sandbox/linux/suid/common/suid_unsafe_environment_variables.h"
17 #include "setuid_sandbox_client.h" 17 #include "setuid_sandbox_client.h"
18 18
19 namespace { 19 namespace {
20 20
21 // Set an environment variable that reflects the API version we expect from the 21 // Set an environment variable that reflects the API version we expect from the
22 // setuid sandbox. Old versions of the sandbox will ignore this. 22 // setuid sandbox. Old versions of the sandbox will ignore this.
23 void SetSandboxAPIEnvironmentVariable(base::Environment* env) { 23 void SetSandboxAPIEnvironmentVariable(base::Environment* env) {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 return sandboxed_; 170 return sandboxed_;
171 } 171 }
172 172
173 void SetuidSandboxClient::SetupLaunchEnvironment() { 173 void SetuidSandboxClient::SetupLaunchEnvironment() {
174 SaveSUIDUnsafeEnvironmentVariables(env_); 174 SaveSUIDUnsafeEnvironmentVariables(env_);
175 SetSandboxAPIEnvironmentVariable(env_); 175 SetSandboxAPIEnvironmentVariable(env_);
176 } 176 }
177 177
178 } // namespace sandbox 178 } // namespace sandbox
179 179
OLDNEW
« no previous file with comments | « rlz/win/lib/rlz_value_store_registry.cc ('k') | sandbox/linux/suid/client/setuid_sandbox_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698