From 58f6b3e8f4a72bc0ddff87816f28298a6ac72a40 Mon Sep 17 00:00:00 2001 From: Edwin Flores Date: Tue, 24 Mar 2015 10:56:49 +1300 Subject: [PATCH] Bug 1146192 - Whitelist sched_yield syscall in GMP sandbox on Linux DONTBUILD CLOSED TREE - r=jld --- security/sandbox/linux/SandboxFilter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/security/sandbox/linux/SandboxFilter.cpp b/security/sandbox/linux/SandboxFilter.cpp index 8fc504a2c5a..1dfc6b1f79b 100644 --- a/security/sandbox/linux/SandboxFilter.cpp +++ b/security/sandbox/linux/SandboxFilter.cpp @@ -369,6 +369,7 @@ void SandboxFilterImplGMP::Build() { Allow(SOCKETCALL(recvmsg, RECVMSG)); Allow(SOCKETCALL(sendmsg, SENDMSG)); Allow(SYSCALL(time)); + Allow(SYSCALL(sched_yield)); // Nothing after this line is performance-critical.