Bug 1XXXXXX - Whitelist sched_yield syscall in GMP sandbox on Linux - r=jld
authorEdwin Flores <eflores@mozilla.com>
Tue, 24 Mar 2015 09:55:36 +1300
changeset 265465 d2918bcf0d90059ca3145a19b705658af0fa4434
parent 265464 c85aa8f8883c648c3ec65e6c734560f718aa8e4b
child 265466 c9d7dacf7727081fb9f6ce7b55f0764283bca09a
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjld
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1XXXXXX - Whitelist sched_yield syscall in GMP sandbox on Linux - r=jld
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -364,16 +364,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