| 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/renderer/renderer_main_platform_delegate.h" | 5 #include "content/renderer/renderer_main_platform_delegate.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <sys/stat.h> | 8 #include <sys/stat.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "content/common/sandbox_linux.h" | 13 #include "content/common/sandbox_linux/sandbox_linux.h" |
| 14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
| 15 #include "content/public/common/sandbox_init.h" | 15 #include "content/public/common/sandbox_init.h" |
| 16 | 16 |
| 17 #ifdef ENABLE_VTUNE_JIT_INTERFACE | 17 #ifdef ENABLE_VTUNE_JIT_INTERFACE |
| 18 #include "v8/src/third_party/vtune/v8-vtune.h" | 18 #include "v8/src/third_party/vtune/v8-vtune.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 RendererMainPlatformDelegate::RendererMainPlatformDelegate( | 23 RendererMainPlatformDelegate::RendererMainPlatformDelegate( |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 errno = 0; | 85 errno = 0; |
| 86 // This should normally return EBADF since the first argument is bogus, | 86 // This should normally return EBADF since the first argument is bogus, |
| 87 // but we know that under the seccomp-bpf sandbox, this should return EPERM. | 87 // but we know that under the seccomp-bpf sandbox, this should return EPERM. |
| 88 CHECK_EQ(fchmod(-1, 07777), -1); | 88 CHECK_EQ(fchmod(-1, 07777), -1); |
| 89 CHECK_EQ(errno, EPERM); | 89 CHECK_EQ(errno, EPERM); |
| 90 } | 90 } |
| 91 #endif // __x86_64__ | 91 #endif // __x86_64__ |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace content | 94 } // namespace content |
| OLD | NEW |