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

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

Issue 10833017: Fix gcc 4.7 building problems - cont 2. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Modified per Adam's comments Created 8 years, 4 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 (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 8
8 #include "base/eintr_wrapper.h" 9 #include "base/eintr_wrapper.h"
9 #include "base/environment.h" 10 #include "base/environment.h"
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
13 14
14 #include "sandbox/linux/suid/common/sandbox.h" 15 #include "sandbox/linux/suid/common/sandbox.h"
15 #include "sandbox/linux/suid/common/suid_unsafe_environment_variables.h" 16 #include "sandbox/linux/suid/common/suid_unsafe_environment_variables.h"
16 #include "setuid_sandbox_client.h" 17 #include "setuid_sandbox_client.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 bool SetuidSandboxClient::IsInNewNETNamespace() const { 160 bool SetuidSandboxClient::IsInNewNETNamespace() const {
160 return env_->HasVar(kSandboxNETNSEnvironmentVarName); 161 return env_->HasVar(kSandboxNETNSEnvironmentVarName);
161 } 162 }
162 163
163 void SetuidSandboxClient::SetupLaunchEnvironment() { 164 void SetuidSandboxClient::SetupLaunchEnvironment() {
164 SaveSUIDUnsafeEnvironmentVariables(env_); 165 SaveSUIDUnsafeEnvironmentVariables(env_);
165 SetSandboxAPIEnvironmentVariable(env_); 166 SetSandboxAPIEnvironmentVariable(env_);
166 } 167 }
167 168
168 } // namespace sandbox 169 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/services/libc_urandom_override.cc ('k') | webkit/plugins/npapi/test/plugin_execute_stream_javascript.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698