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

Unified Diff: sandbox/linux/suid/client/setuid_sandbox_client.cc

Issue 10837081: Revert 149692 - Create a LinuxSandbox class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: sandbox/linux/suid/client/setuid_sandbox_client.cc
===================================================================
--- sandbox/linux/suid/client/setuid_sandbox_client.cc (revision 149703)
+++ sandbox/linux/suid/client/setuid_sandbox_client.cc (working copy)
@@ -103,9 +103,8 @@
return sandbox_client;
}
-SetuidSandboxClient::SetuidSandboxClient()
- : env_(NULL),
- sandboxed_(false) {
+SetuidSandboxClient::SetuidSandboxClient() {
+ env_ = NULL;
}
SetuidSandboxClient::~SetuidSandboxClient() {
@@ -143,10 +142,6 @@
LOG(ERROR) << "Error code reply from chroot helper";
return false;
}
-
- // We now consider ourselves "fully sandboxed" as far as the
- // setuid sandbox is concerned.
- sandboxed_ = true;
return true;
}
@@ -166,10 +161,6 @@
return env_->HasVar(kSandboxNETNSEnvironmentVarName);
}
-bool SetuidSandboxClient::IsSandboxed() const {
- return sandboxed_;
-}
-
void SetuidSandboxClient::SetupLaunchEnvironment() {
SaveSUIDUnsafeEnvironmentVariables(env_);
SetSandboxAPIEnvironmentVariable(env_);
« no previous file with comments | « sandbox/linux/suid/client/setuid_sandbox_client.h ('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