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 394025 64d812edc8bcdd3fb725f7fe2a93d678a21d4d18
parent 394024 2adc92ca880875a4728d3499154a76fadcadfa0a
child 394026 1b921b7a4df9aa59d6fdff909fd79484b777ca25
push id7334
push usercbook@mozilla.com
push dateMon, 22 May 2017 09:54:57 +0000
treeherdermozilla-beta@0386af1703e2 [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();