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: