Bug 1274553 - Properly handle stat() requests in permissive mode. r=jld
authorJulian Hector <julian.r.hector@gmail.com>
Fri, 20 May 2016 14:42:50 +0200
changeset 337419 8978551c29be6882ec1031f4fe36eb6d1b1bc850
parent 337418 2250f9d1fa6d8771603cd524aa1b633042c01f6d
child 337420 4cd4c9499c47caff5e3d04800893c1f1502a6cf5
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjld
bugs1274553
milestone49.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 1274553 - Properly handle stat() requests in permissive mode. r=jld MozReview-Commit-ID: IeFwQ2Gv21z
security/sandbox/linux/broker/SandboxBroker.cpp
--- a/security/sandbox/linux/broker/SandboxBroker.cpp
+++ b/security/sandbox/linux/broker/SandboxBroker.cpp
@@ -381,17 +381,17 @@ SandboxBroker::ThreadMain(void)
             resp.mError = 0;
           } else {
             resp.mError = errno;
           }
         }
         break;
 
       case SANDBOX_FILE_STAT:
-        if (permissive || DoStat(pathBuf, &statBuf, req.mFlags) == 0) {
+        if (DoStat(pathBuf, &statBuf, req.mFlags) == 0) {
           resp.mError = 0;
           ios[1].iov_base = &statBuf;
           ios[1].iov_len = sizeof(statBuf);
         } else {
           resp.mError = errno;
         }
         break;
       }