Index: sandbox/linux/services/credentials.cc |
diff --git a/sandbox/linux/services/credentials.cc b/sandbox/linux/services/credentials.cc |
index 0c617d4b2f19454262a8ac33d0aac07173d2b63c..766fe04616801dd85f36c308b40bffecdc7db99b 100644 |
--- a/sandbox/linux/services/credentials.cc |
+++ b/sandbox/linux/services/credentials.cc |
@@ -321,6 +321,10 @@ bool Credentials::DropFileSystemAccess(int proc_fd) { |
return true; |
} |
+bool Credentials::HasFileSystemAccess() { |
+ return base::DirectoryExists(base::FilePath("/proc")); |
+} |
+ |
pid_t Credentials::ForkAndDropCapabilitiesInChild() { |
pid_t pid = fork(); |
if (pid != 0) { |