Index: sandbox/linux/suid/client/setuid_sandbox_client.cc |
diff --git a/sandbox/linux/suid/client/setuid_sandbox_client.cc b/sandbox/linux/suid/client/setuid_sandbox_client.cc |
index ca73d46444e12e386fbd9bed5c99fbcad382ed71..590efa8d2f68119e59cbce99112200c80d8f291c 100644 |
--- a/sandbox/linux/suid/client/setuid_sandbox_client.cc |
+++ b/sandbox/linux/suid/client/setuid_sandbox_client.cc |
@@ -22,7 +22,7 @@ |
namespace { |
bool IsFileSystemAccessDenied() { |
- base::ScopedFD root_dir(HANDLE_EINTR(open("/", O_RDONLY))); |
+ base::ScopedFD root_dir(HANDLE_EINTR(open("/proc/self/exe", O_RDONLY))); |
Tom (Use chromium acct)
2016/12/14 04:13:48
Without this, when running as root, IsFileSystemAc
mdempsky
2016/12/14 05:11:11
Hm, so my best guess is that because with the setu
Tom (Use chromium acct)
2016/12/14 21:10:26
ok that makes sense.
|
return !root_dir.is_valid(); |
} |