| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/zygote_host/zygote_host_impl_linux.h" | 5 #include "content/browser/zygote_host/zygote_host_impl_linux.h" |
| 6 | 6 |
| 7 #include <sys/socket.h> | 7 #include <sys/socket.h> |
| 8 | 8 |
| 9 #include "base/allocator/allocator_extension.h" | 9 #include "base/allocator/allocator_extension.h" |
| 10 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
| 11 #include "base/posix/unix_domain_socket_linux.h" | 11 #include "base/posix/unix_domain_socket_linux.h" |
| 12 #include "base/process/kill.h" | 12 #include "base/process/kill.h" |
| 13 #include "base/process/memory.h" | 13 #include "base/process/memory.h" |
| 14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
| 15 #include "content/browser/renderer_host/render_sandbox_host_linux.h" | 15 #include "content/browser/renderer_host/render_sandbox_host_linux.h" |
| 16 #include "content/common/child_process_sandbox_support_impl_linux.h" | 16 #include "content/common/sandbox_linux/sandbox_linux.h" |
| 17 #include "content/common/zygote_commands_linux.h" | 17 #include "content/common/zygote_commands_linux.h" |
| 18 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
| 19 #include "sandbox/linux/services/credentials.h" | 19 #include "sandbox/linux/services/credentials.h" |
| 20 #include "sandbox/linux/services/namespace_sandbox.h" | 20 #include "sandbox/linux/services/namespace_sandbox.h" |
| 21 #include "sandbox/linux/suid/client/setuid_sandbox_host.h" | 21 #include "sandbox/linux/suid/client/setuid_sandbox_host.h" |
| 22 #include "sandbox/linux/suid/common/sandbox.h" | 22 #include "sandbox/linux/suid/common/sandbox.h" |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 if (sandbox_helper_process.IsValid()) | 273 if (sandbox_helper_process.IsValid()) |
| 274 base::EnsureProcessGetsReaped(sandbox_helper_process.Pid()); | 274 base::EnsureProcessGetsReaped(sandbox_helper_process.Pid()); |
| 275 } else if (!use_suid_sandbox_for_adj_oom_score_) { | 275 } else if (!use_suid_sandbox_for_adj_oom_score_) { |
| 276 if (!base::AdjustOOMScore(pid, score)) | 276 if (!base::AdjustOOMScore(pid, score)) |
| 277 PLOG(ERROR) << "Failed to adjust OOM score of renderer with pid " << pid; | 277 PLOG(ERROR) << "Failed to adjust OOM score of renderer with pid " << pid; |
| 278 } | 278 } |
| 279 } | 279 } |
| 280 #endif | 280 #endif |
| 281 | 281 |
| 282 } // namespace content | 282 } // namespace content |
| OLD | NEW |