Bug 1285769 - Add sys_get_mempolicy to seccomp whitelist. r=gcp
authorJulian Hector <julian.r.hector@gmail.com>
Mon, 25 Jul 2016 19:37:58 +0200
changeset 346719 c941e8a139541661f1ca69c673959345e76f20bf
parent 346718 7107f6c515422d297e25e9028f37d29efcbba0ec
child 346720 edf44ee4f4ad3a5b444bed2fc74d4c13ca5d68dc
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp
bugs1285769
milestone50.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 1285769 - Add sys_get_mempolicy to seccomp whitelist. r=gcp
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -672,16 +672,19 @@ public:
 #ifdef __NR_fadvise64
     case __NR_fadvise64:
       return Allow();
 #endif
 
     case __NR_fallocate:
       return Allow();
 
+    case __NR_get_mempolicy:
+      return Allow();
+
 #endif // DESKTOP
 
 #ifdef __NR_getrandom
     case __NR_getrandom:
       return Allow();
 #endif
 
       // nsSystemInfo uses uname (and we cache an instance, so