Bug 1287008 - Add sys_fadvise64_64 to seccomp whitelist. r=gcp
authorJulian Hector <julian.r.hector@gmail.com>
Wed, 27 Jul 2016 15:45:02 +0200
changeset 332194 e3f85c717e6578a66bb6f3a82d72ce609e33ed7c
parent 332193 660eca9e31be86a265f6865e1fb9c72fa62f3b39
child 332195 1b296ad664a2afc31a651499ba8858bcd081f19e
push id9858
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 14:37:10 +0000
treeherdermozilla-aurora@203106ef6cb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp
bugs1287008
milestone50.0a1
Bug 1287008 - Add sys_fadvise64_64 to seccomp whitelist. r=gcp
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -669,16 +669,21 @@ public:
     case __NR_clone:
       return ClonePolicy(Error(EPERM));
 
 #ifdef __NR_fadvise64
     case __NR_fadvise64:
       return Allow();
 #endif
 
+#ifdef __NR_fadvise64_64
+    case __NR_fadvise64_64:
+      return Allow();
+#endif
+
     case __NR_fallocate:
       return Allow();
 
     case __NR_get_mempolicy:
       return Allow();
 
 #endif // DESKTOP