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

Unified Diff: sandbox/linux/services/proc_util.h

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.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
« no previous file with comments | « sandbox/linux/services/namespace_utils_unittest.cc ('k') | sandbox/linux/services/proc_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/services/proc_util.h
diff --git a/sandbox/linux/services/proc_util.h b/sandbox/linux/services/proc_util.h
index 9d9bb2ea39936e021a324e994f302fcec283030e..74388f8036c61e235e297b2e22473892d3b18d4c 100644
--- a/sandbox/linux/services/proc_util.h
+++ b/sandbox/linux/services/proc_util.h
@@ -5,6 +5,7 @@
#ifndef SANDBOX_LINUX_SERVICES_PROC_UTIL_H_
#define SANDBOX_LINUX_SERVICES_PROC_UTIL_H_
+#include "base/files/scoped_file.h"
#include "base/macros.h"
#include "sandbox/sandbox_export.h"
@@ -31,6 +32,9 @@ class SANDBOX_EXPORT ProcUtil {
// false.
static bool HasOpenDirectory(int proc_fd);
+ // Open /proc/self/task/ or crash if it cannot.
+ static base::ScopedFD OpenProcSelfTask();
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ProcUtil);
};
« no previous file with comments | « sandbox/linux/services/namespace_utils_unittest.cc ('k') | sandbox/linux/services/proc_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698