Chromium Code Reviews| Index: content/common/sandbox_win.cc |
| diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
| index 110edb8a6812438efa13d1d1549568dfdc6553b0..22f9e51b6dba6f7783ee3a9d5359724373bbf9a4 100644 |
| --- a/content/common/sandbox_win.cc |
| +++ b/content/common/sandbox_win.cc |
| @@ -11,6 +11,7 @@ |
| #include "base/debug/profiler.h" |
| #include "base/files/file_util.h" |
| #include "base/hash.h" |
| +#include "base/logging.h" |
| #include "base/memory/shared_memory.h" |
| #include "base/metrics/sparse_histogram.h" |
| #include "base/path_service.h" |
| @@ -741,6 +742,16 @@ base::Process StartSandboxedProcess( |
| return base::Process(); |
| } |
| + // Allow the renderer and gpu processes to access the log file. |
| + if (type_str == switches::kRendererProcess || |
| + type_str == switches::kGpuProcess) { |
| + if (logging::IsLoggingToFileEnabled()) { |
| + policy->AddRule(sandbox::TargetPolicy::SUBSYS_FILES, |
| + sandbox::TargetPolicy::FILES_ALLOW_ANY, |
| + logging::GetLogFileFullPath().c_str()); |
|
scottmg
2015/09/16 23:30:47
is it ok if this path is relative?
ananta
2015/09/16 23:49:38
It will not be relative in this patch. It is updat
|
| + } |
| + } |
| + |
| #if !defined(OFFICIAL_BUILD) |
| // If stdout/stderr point to a Windows console, these calls will |
| // have no effect. |