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/public/common/sandbox_init.h" | 5 #include "content/public/common/sandbox_init.h" |
6 | 6 |
7 #if defined(__i386__) || defined(__x86_64__) | 7 #if defined(__i386__) || defined(__x86_64__) |
8 | 8 |
9 // This is an assert for GYP | 9 // This is an assert for GYP |
10 #if !defined(OS_LINUX) | 10 #if !defined(OS_LINUX) |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 case __NR_openat: | 130 case __NR_openat: |
131 case __NR_execve: | 131 case __NR_execve: |
132 case __NR_access: | 132 case __NR_access: |
133 case __NR_mkdir: | 133 case __NR_mkdir: |
134 case __NR_mkdirat: | 134 case __NR_mkdirat: |
135 case __NR_readlink: | 135 case __NR_readlink: |
136 case __NR_readlinkat: | 136 case __NR_readlinkat: |
137 case __NR_stat: | 137 case __NR_stat: |
138 case __NR_lstat: | 138 case __NR_lstat: |
139 case __NR_chdir: | 139 case __NR_chdir: |
| 140 case __NR_mknod: |
| 141 case __NR_mknodat: |
140 return true; | 142 return true; |
141 default: | 143 default: |
142 return false; | 144 return false; |
143 } | 145 } |
144 } | 146 } |
145 | 147 |
146 #if defined(__x86_64__) | 148 #if defined(__x86_64__) |
147 // x86_64 only because it references system calls that are multiplexed on IA32. | 149 // x86_64 only because it references system calls that are multiplexed on IA32. |
148 playground2::Sandbox::ErrorCode GpuProcessPolicy_x86_64(int sysno) { | 150 playground2::Sandbox::ErrorCode GpuProcessPolicy_x86_64(int sysno) { |
149 switch(sysno) { | 151 switch(sysno) { |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 453 |
452 namespace content { | 454 namespace content { |
453 | 455 |
454 void InitializeSandbox() { | 456 void InitializeSandbox() { |
455 #if defined(__i386__) || defined(__x86_64__) | 457 #if defined(__i386__) || defined(__x86_64__) |
456 InitializeSandbox_x86(); | 458 InitializeSandbox_x86(); |
457 #endif | 459 #endif |
458 } | 460 } |
459 | 461 |
460 } // namespace content | 462 } // namespace content |
OLD | NEW |