Chromium Code Reviews| Index: content/common/sandbox_seccomp_bpf_linux.cc |
| =================================================================== |
| --- content/common/sandbox_seccomp_bpf_linux.cc (revision 170769) |
| +++ content/common/sandbox_seccomp_bpf_linux.cc (working copy) |
| @@ -1253,6 +1253,10 @@ |
| // The hook needs dup(), lseek(), and close() to be allowed. |
| return Sandbox::Trap(GpuOpenSIGSYS_Handler, NULL); |
| } |
| +#if defined(ADDRESS_SANITIZER) |
| + // Allow to call sched_getaffinity under AddressSanitizer. |
| + case __NR_sched_getaffinity: |
|
jln (very slow on Chromium)
2012/12/04 00:16:09
You need to add return ErrorCode(ErrorCode::ERR_AL
|
| +#endif |
| default: |
| if (IsEventFd(sysno)) |
| return ErrorCode(ErrorCode::ERR_ALLOWED); |
| @@ -1274,6 +1278,10 @@ |
| case __NR_mremap: // See crbug.com/149834. |
| case __NR_pread64: |
| case __NR_pwrite64: |
| +#if defined(ADDRESS_SANITIZER) |
| + // Allow to call sched_getaffinity() under AddressSanitizer. |
| + case __NR_sched_getaffinity: |
| +#endif |
| case __NR_sched_get_priority_max: |
| case __NR_sched_get_priority_min: |
| case __NR_sched_getparam: |