Bug 1290343 - Fix Linux GMP sandbox policy's geteuid rule for 32-bit. r=tedd,a=ritu
authorJed Davis <jld@mozilla.com>
Mon, 01 Aug 2016 13:10:00 +0200
changeset 347607 c843e9dbdbbc61f9f97484cfeaf60d680ffecab2
parent 347606 9b63fa5a9acdca6cc9b5bfb9bcb6603301b6adcb
child 347608 f96ead8d21170bc8b83bb4b1456bce7ff17f7fd6
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstedd, ritu
bugs1290343
milestone50.0a2
Bug 1290343 - Fix Linux GMP sandbox policy's geteuid rule for 32-bit. r=tedd,a=ritu MozReview-Commit-ID: 3RzxJfeD9Fx
security/sandbox/linux/SandboxFilter.cpp
--- a/security/sandbox/linux/SandboxFilter.cpp
+++ b/security/sandbox/linux/SandboxFilter.cpp
@@ -807,17 +807,17 @@ public:
       return If(advice == MADV_DONTNEED, Allow())
 #ifdef MOZ_ASAN
         .ElseIf(advice == MADV_NOHUGEPAGE, Allow())
         .ElseIf(advice == MADV_DONTDUMP, Allow())
 #endif
         .Else(InvalidSyscall());
     }
     case __NR_brk:
-    case __NR_geteuid:
+    CASES_FOR_geteuid:
       return Allow();
     case __NR_sched_getparam:
     case __NR_sched_getscheduler:
     case __NR_sched_get_priority_min:
     case __NR_sched_get_priority_max:
     case __NR_sched_setscheduler: {
       Arg<pid_t> pid(0);
       return If(pid == 0, Allow())