odp-util: Format and scan multiple MPLS labels.
[cascardo/ovs.git] / lib / socket-util-unix.c
index c56654e..32f966d 100644 (file)
@@ -28,7 +28,7 @@
 #include "fatal-signal.h"
 #include "random.h"
 #include "util.h"
-#include "vlog.h"
+#include "openvswitch/vlog.h"
 
 VLOG_DEFINE_THIS_MODULE(socket_util_unix);
 
@@ -259,10 +259,10 @@ free_sockaddr_un(int dirfd, const char *linkname)
 }
 
 /* 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. */