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 156538 2a1f51ff962b83e812bf64cbae827f749cd4232a
parent 156537 7fed679f0661c2fe5c529f9842160313cbf8993c
child 156539 2bcc119c46d9d68fcec953753fe36f99107b8315
push id190
push userryanvm@gmail.com
push dateTue, 19 Nov 2013 02:33:50 +0000
reviewerspast, lsblakk
bugs935229
milestone26.0
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
@@ -419,17 +419,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++;