mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 20:13:44 +02:00
Make Unix domain sockets mode 0777 so that properly authorized non-privileged users can access them (if they have auth token).
This commit is contained in:
parent
f0223490be
commit
b1088a6bd7
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ IpcListener::IpcListener(const char *ep,void (*commandHandler)(void *,IpcConnect
|
||||||
::close(_sock);
|
::close(_sock);
|
||||||
throw std::runtime_error("listen() failed for bound AF_UNIX socket");
|
throw std::runtime_error("listen() failed for bound AF_UNIX socket");
|
||||||
}
|
}
|
||||||
|
::chmod(_endpoint.c_str(),0777);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_thread = Thread::start(this);
|
_thread = Thread::start(this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue