소스 검색

Make Unix domain sockets mode 0777 so that properly authorized non-privileged users can access them (if they have auth token).

Adam Ierymenko 11 년 전
부모
커밋
b1088a6bd7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      node/IpcListener.cpp

+ 1 - 0
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);