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

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

Issue 885673007: Minor refactoring of setuid_sandbox_client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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.h
diff --git a/sandbox/linux/suid/client/setuid_sandbox_client.h b/sandbox/linux/suid/client/setuid_sandbox_client.h
index e6a3e4c5cad2837848c2284d29ab8bc30b742f62..b24eb4c5fff9926e9da3df693d88d5eb4140ac4e 100644
--- a/sandbox/linux/suid/client/setuid_sandbox_client.h
+++ b/sandbox/linux/suid/client/setuid_sandbox_client.h
@@ -6,7 +6,8 @@
#define SANDBOX_LINUX_SUID_SETUID_SANDBOX_CLIENT_H_
#include "base/basictypes.h"
-#include "base/callback_forward.h"
+#include "base/command_line.h"
+#include "base/environment.h"
#include "base/files/file_path.h"
#include "base/files/scoped_file.h"
#include "base/process/launch.h"
@@ -52,11 +53,6 @@ class SANDBOX_EXPORT SetuidSandboxClient {
// to an empty directory.
// Will only work if we have been launched through the setuid helper.
bool ChrootMe();
- // When a new PID namespace is created, the process with pid == 1 should
- // assume the role of init.
- // See sandbox/linux/services/init_process_reaper.h for more information
- // on this API.
- bool CreateInitProcessReaper(base::Closure* post_fork_parent_callback);
// Did we get launched through an up to date setuid binary ?
bool IsSuidSandboxUpToDate() const;
« no previous file with comments | « no previous file | sandbox/linux/suid/client/setuid_sandbox_client.cc » ('j') | sandbox/linux/suid/client/setuid_sandbox_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698