Bug 970562 - Add sched_getscheduler to seccomp whitelist. r=kang
authorJed Davis <jld@mozilla.com>
Sat, 22 Feb 2014 18:58:59 -0800
changeset 170441 b52309ff5fe79cbc0972fe3fe3a7129eba44edf9
parent 170440 76a0fadf4dd5a408748ac3b6d90f686387b19ba2
child 170442 0500e2d9eb7e9e36baa95078cac0374d36e54393
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewerskang
bugs970562
milestone30.0a1
Bug 970562 - Add sched_getscheduler to seccomp whitelist. r=kang
security/sandbox/linux/seccomp_filter.h
--- a/security/sandbox/linux/seccomp_filter.h
+++ b/security/sandbox/linux/seccomp_filter.h
@@ -120,16 +120,17 @@
 #define SECCOMP_WHITELIST_B2G_MED \
   ALLOW_SYSCALL(getpid), \
   ALLOW_SYSCALL(rt_sigreturn),
 
 #define SECCOMP_WHITELIST_B2G_LOW \
   ALLOW_SYSCALL(sendto), \
   ALLOW_SYSCALL(recvfrom), \
   ALLOW_SYSCALL(getdents64), \
+  ALLOW_SYSCALL(sched_getscheduler), \
   ALLOW_SYSCALL(sched_setscheduler),
 
 #else
 #define SECCOMP_WHITELIST_B2G_HIGH
 #define SECCOMP_WHITELIST_B2G_MED
 #define SECCOMP_WHITELIST_B2G_LOW
 #endif
 /* End of B2G specific syscalls */