Bug 1268579 - Add inotify_rm_watch to the seccomp-bpf whitelist. r?jld draft
authorGian-Carlo Pascutto <gcp@mozilla.com>
Thu, 28 Apr 2016 20:04:06 +0200
changeset 357417 e0600a40289a649a615d5ca4aa9ce9ee2ebb8fff
parent 357368 4292da9df16b220f30921100282264a34cd2ff03
child 519638 8c1deef35dff61758b4c559e7a54d18e0558cbdd
push id16774
push usergpascutto@mozilla.com
push dateThu, 28 Apr 2016 18:04:25 +0000
reviewersjld
bugs1268579
milestone49.0a1
Bug 1268579 - Add inotify_rm_watch to the seccomp-bpf whitelist. r?jld MozReview-Commit-ID: DvaHjOa5GOv
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -611,16 +611,17 @@ public:
 #ifdef __NR_arch_prctl
     case __NR_arch_prctl:
 #endif
       return Allow();
 
     case __NR_eventfd2:
     case __NR_inotify_init1:
     case __NR_inotify_add_watch:
+    case __NR_inotify_rm_watch:
       return Allow();
 #endif
 
       // nsSystemInfo uses uname (and we cache an instance, so
       // the info remains present even if we block the syscall)
     case __NR_uname:
 #ifdef DESKTOP
     case __NR_sysinfo: