Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: content/common/sandbox_seccomp_bpf_linux.cc

Issue 11418277: Allow ASanified Chrome to use sched_getaffinity (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_seccomp_bpf_linux.cc
===================================================================
--- content/common/sandbox_seccomp_bpf_linux.cc (revision 169547)
+++ content/common/sandbox_seccomp_bpf_linux.cc (working copy)
@@ -723,6 +723,10 @@
case __NR_sched_yield:
case __NR_pause:
case __NR_nanosleep:
+#if defined(ADDRESS_SANITIZER)
+ // Allow to call sched_getaffinity under AddressSanitizer.
+ case __NR_sched_getaffinity:
+#endif
return true;
case __NR_getpriority:
#if defined(__i386__) || defined(__arm__)
@@ -972,7 +976,10 @@
case __NR_ioprio_set:
case __NR_sched_get_priority_max:
case __NR_sched_get_priority_min:
+#if !defined(ADDRESS_SANITIZER)
+ // Allow to call sched_getaffinity under AddressSanitizer.
case __NR_sched_getaffinity:
+#endif
case __NR_sched_getparam:
case __NR_sched_getscheduler:
case __NR_sched_rr_get_interval:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698