From a88beef0b55dc22095e8424fdf91d2fa8b956735 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Mon, 27 Feb 2017 13:50:23 -0800 Subject: [PATCH] modules/connector-local: ensure socket is 0777 --- src/modules/connector-local/local.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/connector-local/local.c b/src/modules/connector-local/local.c index a5e4361536d0..8116707b037a 100644 --- a/src/modules/connector-local/local.c +++ b/src/modules/connector-local/local.c @@ -714,6 +714,10 @@ static int listener_init (mod_local_ctx_t *ctx, char *sockpath) flux_log_error (ctx->h, "bind"); goto error_close; } + if (chmod (sockpath, 0777) < 0) { + flux_log_error (ctx->h, "chmod"); + goto error_close; + } if (listen (fd, LISTEN_BACKLOG) < 0) { flux_log_error (ctx->h, "listen"); goto error_close;