fix to make RPC available across users

This commit is contained in:
Joseph Henry
2016-11-14 17:39:32 -08:00
parent b3d4410bbc
commit 295445afe0

View File

@@ -141,6 +141,9 @@ NetconEthernetTap::NetconEthernetTap(
#endif #endif
_unixListenSocket = _phy.unixListen(sockPath,(void *)this); _unixListenSocket = _phy.unixListen(sockPath,(void *)this);
chmod(sockPath, 0777); // To make the RPC socket available to all users
DEBUG_INFO("tap initialized on: path=%s", sockPath); DEBUG_INFO("tap initialized on: path=%s", sockPath);
if (!_unixListenSocket) if (!_unixListenSocket)
DEBUG_ERROR("unable to bind to: path=%s", sockPath); DEBUG_ERROR("unable to bind to: path=%s", sockPath);