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 349230 e3f85c717e6578a66bb6f3a82d72ce609e33ed7c
parent 349229 660eca9e31be86a265f6865e1fb9c72fa62f3b39
child 349231 1b296ad664a2afc31a651499ba8858bcd081f19e
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgcp
bugs1287008
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 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