Chromium Code Reviews| Index: sandbox/linux/services/credentials.cc |
| diff --git a/sandbox/linux/services/credentials.cc b/sandbox/linux/services/credentials.cc |
| index f926ce8e85dcc117dabf85ece4f8581c728b94f7..e97dff8d9b52599ac83725c0cfe8699ffe6fdd6f 100644 |
| --- a/sandbox/linux/services/credentials.cc |
| +++ b/sandbox/linux/services/credentials.cc |
| @@ -21,7 +21,6 @@ |
| #include "base/template_util.h" |
| #include "base/third_party/valgrind/valgrind.h" |
| #include "base/threading/thread.h" |
| -#include "sandbox/linux/services/proc_util.h" |
| #include "sandbox/linux/services/syscall_wrappers.h" |
| namespace { |
| @@ -248,9 +247,6 @@ bool Credentials::MoveToNewUserNS() { |
| } |
| bool Credentials::DropFileSystemAccess() { |
|
jln (very slow on Chromium)
2015/01/05 23:02:32
We could also take a file descriptor to /proc here
rickyz (no longer on Chrome)
2015/01/06 08:01:20
Hm, having the check isn't as big of an extra guar
|
| - // Chrooting to a safe empty dir will only be safe if no directory file |
| - // descriptor is available to the process. |
| - DCHECK(!ProcUtil::HasOpenDirectory(-1)); |
| return ChrootToSafeEmptyDir(); |
| } |