Index: sandbox/linux/services/credentials.h |
diff --git a/sandbox/linux/services/credentials.h b/sandbox/linux/services/credentials.h |
index 75eb5c4db5495a666406c03a2f66dcaf6adf5acd..465f0c57050b6fc8c5cf5d0eaa8a43d8ffc62c26 100644 |
--- a/sandbox/linux/services/credentials.h |
+++ b/sandbox/linux/services/credentials.h |
@@ -27,6 +27,11 @@ class SANDBOX_EXPORT Credentials { |
Credentials(); |
~Credentials(); |
+ // Returns the number of file descriptors in the current process's FD |
+ // table, excluding |proc_fd|, which should be a file descriptor for |
+ // /proc. |
+ int CountOpenFds(int proc_fd); |
+ |
// Checks whether the current process has any directory file descriptor open. |
// Directory file descriptors are "capabilities" that would let a process use |
// system calls such as openat() to bypass restrictions such as |