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 <asm/unistd.h> | 5 #include <asm/unistd.h> |
6 #include <dlfcn.h> | 6 #include <dlfcn.h> |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <linux/audit.h> | 9 #include <linux/audit.h> |
10 #include <linux/filter.h> | 10 #include <linux/filter.h> |
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 | 1241 |
1242 ErrorCode RendererOrWorkerProcessPolicy_x86_64(int sysno) { | 1242 ErrorCode RendererOrWorkerProcessPolicy_x86_64(int sysno) { |
1243 switch (sysno) { | 1243 switch (sysno) { |
1244 case __NR_ioctl: // TODO(jln) investigate legitimate use in the renderer | 1244 case __NR_ioctl: // TODO(jln) investigate legitimate use in the renderer |
1245 // and see if alternatives can be used. | 1245 // and see if alternatives can be used. |
1246 case __NR_fdatasync: | 1246 case __NR_fdatasync: |
1247 case __NR_fsync: | 1247 case __NR_fsync: |
1248 #if defined(__i386__) || defined(__x86_64__) | 1248 #if defined(__i386__) || defined(__x86_64__) |
1249 case __NR_getrlimit: | 1249 case __NR_getrlimit: |
1250 #endif | 1250 #endif |
| 1251 case __NR_mremap: // See crbug.com/149834. |
1251 case __NR_pread64: | 1252 case __NR_pread64: |
1252 case __NR_pwrite64: | 1253 case __NR_pwrite64: |
1253 case __NR_sched_get_priority_max: | 1254 case __NR_sched_get_priority_max: |
1254 case __NR_sched_get_priority_min: | 1255 case __NR_sched_get_priority_min: |
1255 case __NR_sched_getparam: | 1256 case __NR_sched_getparam: |
1256 case __NR_sched_getscheduler: | 1257 case __NR_sched_getscheduler: |
1257 case __NR_sched_setscheduler: | 1258 case __NR_sched_setscheduler: |
1258 case __NR_setpriority: | 1259 case __NR_setpriority: |
1259 case __NR_sysinfo: | 1260 case __NR_sysinfo: |
1260 case __NR_times: | 1261 case __NR_times: |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 // Process-specific policy. | 1444 // Process-specific policy. |
1444 ShouldEnableSeccompBpf(process_type) && | 1445 ShouldEnableSeccompBpf(process_type) && |
1445 SupportsSandbox()) { | 1446 SupportsSandbox()) { |
1446 return StartBpfSandbox(command_line, process_type); | 1447 return StartBpfSandbox(command_line, process_type); |
1447 } | 1448 } |
1448 #endif | 1449 #endif |
1449 return false; | 1450 return false; |
1450 } | 1451 } |
1451 | 1452 |
1452 } // namespace content | 1453 } // namespace content |
OLD | NEW |