#include "fatal-signal.h"
#include "random.h"
#include "util.h"
-#include "vlog.h"
+#include "openvswitch/vlog.h"
VLOG_DEFINE_THIS_MODULE(socket_util_unix);
}
/* Binds Unix domain socket 'fd' to a file with permissions 0700. */
-static int
-bind_unix_socket(int fd, struct sockaddr *sun, socklen_t sun_len)
+static int bind_unix_socket(int fd, struct sockaddr *sun, socklen_t sun_len)
{
- const mode_t mode = 0700;
+ const mode_t mode = 0770; /* Allow both user and group access. */
+
if (LINUX) {
/* On Linux, the fd's permissions become the file's permissions.
* fchmod() does not affect other files, like umask() does. */