From b1088a6bd7a3b8c77c596f6b65663648d4c4fdea Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 2 Apr 2014 17:21:26 -0700 Subject: Make Unix domain sockets mode 0777 so that properly authorized non-privileged users can access them (if they have auth token). --- node/IpcListener.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'node') diff --git a/node/IpcListener.cpp b/node/IpcListener.cpp index 0adfa9a0..681328f8 100644 --- a/node/IpcListener.cpp +++ b/node/IpcListener.cpp @@ -86,6 +86,7 @@ IpcListener::IpcListener(const char *ep,void (*commandHandler)(void *,IpcConnect ::close(_sock); throw std::runtime_error("listen() failed for bound AF_UNIX socket"); } + ::chmod(_endpoint.c_str(),0777); #endif _thread = Thread::start(this); -- cgit v1.2.3