From d1b104c66677439f92129377e6a1a484ed74482a Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Tue, 28 Jul 2020 00:18:27 +0200 Subject: [PATCH] set punchd socket file permissions to 0666 --- punchd.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/punchd.nim b/punchd.nim index 032026f..9705915 100644 --- a/punchd.nim +++ b/punchd.nim @@ -88,6 +88,9 @@ proc main() = removeFile(PunchdSocket) let unixSocket = newAsyncSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP) unixSocket.bindUnix(PunchdSocket) + setFilePermissions(PunchdSocket, + {fpUserRead, fpUserWrite, fpGroupRead, fpGroupWrite, + fpOthersRead, fpOthersWrite}) unixSocket.listen() asyncCheck handleUsers(unixSocket) try: