Bug 1355273 - Allow inotify_init alongside inotify_init1. r=Alex_Gaynor,gcp a=gchang
authorJed Davis <jld@mozilla.com>
Fri, 14 Apr 2017 16:17:39 -0600
changeset 396350 64d812edc8bcdd3fb725f7fe2a93d678a21d4d18
parent 396349 2adc92ca880875a4728d3499154a76fadcadfa0a
child 396351 1b921b7a4df9aa59d6fdff909fd79484b777ca25
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersAlex_Gaynor, gcp, gchang
bugs1355273
milestone54.0
Bug 1355273 - Allow inotify_init alongside inotify_init1. r=Alex_Gaynor,gcp a=gchang MozReview-Commit-ID: 5hAapLdbmeh
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -767,16 +767,17 @@ public:
     case __NR_waitpid:
 #endif
 #ifdef __NR_arch_prctl
     case __NR_arch_prctl:
 #endif
       return Allow();
 
     case __NR_eventfd2:
+    case __NR_inotify_init:
     case __NR_inotify_init1:
     case __NR_inotify_add_watch:
     case __NR_inotify_rm_watch:
       return Allow();
 
 #ifdef __NR_memfd_create
     case __NR_memfd_create:
       return Allow();