Bug 935229 - Open unix socket with 666 permissions instead of 600. r=past, a=lsblakk
authorPaul Rouget <paul@mozilla.com>
Fri, 15 Nov 2013 21:47:01 -0500
changeset 161336 42014e10777759da2f58c9092dad094912cc9962
parent 161335 12b4725d98b1ec508fe45c1413dc562a275b200f
child 161337 de17c895d5b814485c42e4dc22cb91f2c2e17ba5
push id4613
push userryanvm@gmail.com
push dateMon, 18 Nov 2013 22:15:15 +0000
treeherdermozilla-aurora@0395ab4e357b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast, lsblakk
bugs935229
milestone27.0a2
Bug 935229 - Open unix socket with 666 permissions instead of 600. r=past, a=lsblakk
toolkit/devtools/server/main.js
--- a/toolkit/devtools/server/main.js
+++ b/toolkit/devtools/server/main.js
@@ -420,17 +420,17 @@ var DebuggerServer = {
       let socket;
       let port = Number(aPortOrPath);
       if (port) {
         socket = new ServerSocket(port, flags, backlog);
       } else {
         let file = nsFile(aPortOrPath);
         if (file.exists())
           file.remove(false);
-        socket = new UnixDomainServerSocket(file, parseInt("600", 8), backlog);
+        socket = new UnixDomainServerSocket(file, parseInt("666", 8), backlog);
       }
       socket.asyncListen(this);
       this._listener = socket;
     } catch (e) {
       dumpn("Could not start debugging listener on '" + aPortOrPath + "': " + e);
       throw Cr.NS_ERROR_NOT_AVAILABLE;
     }
     this._socketConnections++;