From 0abec0eb60b99efc6bf03ddba2389d3640629c19 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 13 Apr 2021 22:09:37 +0200 Subject: [PATCH] passt: Make UNIX domain socket world-writable and world-readable ...save a chmod every time passt is started. Signed-off-by: Stefano Brivio --- passt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/passt.c b/passt.c index ed8b251..2fe57bc 100644 --- a/passt.c +++ b/passt.c @@ -42,6 +42,7 @@ #include #include #include +#include #include "passt.h" #include "arp.h" @@ -80,6 +81,10 @@ static int sock_unix(void) perror("UNIX socket bind"); exit(EXIT_FAILURE); } + + chmod(UNIX_SOCK_PATH, + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); + return fd; }