Bug 1146192 - Whitelist sched_yield syscall in GMP sandbox on Linux. r=jld, a=sledru
authorEdwin Flores <eflores@mozilla.com>
Tue, 24 Mar 2015 10:56:49 +1300
changeset 258398 e06c5a9ce450
parent 258397 8bb13d7a5d2a
child 258399 b04842ef36ca
push id4659
push userryanvm@gmail.com
push date2015-04-09 15:23 +0000
treeherdermozilla-beta@58dca3f7560a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjld, sledru
bugs1146192
milestone38.0
Bug 1146192 - Whitelist sched_yield syscall in GMP sandbox on Linux. r=jld, a=sledru
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -363,16 +363,17 @@ void SandboxFilterImplGMP::Build() {
   Allow(SYSCALL(poll));
   Allow(SYSCALL(write));
   Allow(SYSCALL(read));
   Allow(SYSCALL(epoll_wait));
   Allow(SYSCALL(epoll_pwait));
   Allow(SOCKETCALL(recvmsg, RECVMSG));
   Allow(SOCKETCALL(sendmsg, SENDMSG));
   Allow(SYSCALL(time));
+  Allow(SYSCALL(sched_yield));
 
   // Nothing after this line is performance-critical.
 
 #if SYSCALL_EXISTS(mmap2)
   Allow(SYSCALL(mmap2));
 #else
   Allow(SYSCALL(mmap));
 #endif