summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-04-02 17:21:26 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-04-02 17:21:26 -0700
commitb1088a6bd7a3b8c77c596f6b65663648d4c4fdea (patch)
treeb1dd4a7a3b86a4a54d357669bd863e4886afd143 /node
parentf0223490becc9bba82297cd6316c87d2f89f2052 (diff)
downloadinfinitytier-b1088a6bd7a3b8c77c596f6b65663648d4c4fdea.tar.gz
infinitytier-b1088a6bd7a3b8c77c596f6b65663648d4c4fdea.zip
Make Unix domain sockets mode 0777 so that properly authorized non-privileged users can access them (if they have auth token).
Diffstat (limited to 'node')
-rw-r--r--node/IpcListener.cpp1
1 files changed, 1 insertions, 0 deletions
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);