| Index: sandbox/linux/services/credentials.h
|
| diff --git a/sandbox/linux/services/credentials.h b/sandbox/linux/services/credentials.h
|
| index 56ff115140714ae9c3f01d1aae1779ef05056dc2..99f8f322dff62c9814ee131d97ec31fab4b1bbaf 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
|
|
|