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

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

Issue 885673007: Minor refactoring of setuid_sandbox_client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sandbox/linux/suid/client/setuid_sandbox_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/suid/client/setuid_sandbox_client.cc
diff --git a/sandbox/linux/suid/client/setuid_sandbox_client.cc b/sandbox/linux/suid/client/setuid_sandbox_client.cc
index f0b5cef1e0068ef9c0ddc1deccf46786ade54a4a..9eb538ae37719e088d07e3735b1681c2767c8ec0 100644
--- a/sandbox/linux/suid/client/setuid_sandbox_client.cc
+++ b/sandbox/linux/suid/client/setuid_sandbox_client.cc
@@ -18,7 +18,6 @@
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "base/logging.h"
-#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/path_service.h"
#include "base/posix/eintr_wrapper.h"
@@ -32,7 +31,7 @@
namespace {
bool IsFileSystemAccessDenied() {
- base::ScopedFD self_exe(HANDLE_EINTR(open(base::kProcSelfExe, O_RDONLY)));
+ base::ScopedFD self_exe(HANDLE_EINTR(open("/", O_RDONLY)));
jln (very slow on Chromium) 2015/02/05 00:12:52 This seems like it could easily regress. What was
mdempsky 2015/02/05 01:41:19 Removing base::kProcSelfExe was so this function c
return !self_exe.is_valid();
}
@@ -208,11 +207,6 @@ bool SetuidSandboxClient::ChrootMe() {
return true;
}
-bool SetuidSandboxClient::CreateInitProcessReaper(
- base::Closure* post_fork_parent_callback) {
- return sandbox::CreateInitProcessReaper(post_fork_parent_callback);
-}
-
bool SetuidSandboxClient::IsSuidSandboxUpToDate() const {
return GetHelperApi(env_) == kSUIDSandboxApiNumber;
}
« no previous file with comments | « sandbox/linux/suid/client/setuid_sandbox_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698