set punchd socket file permissions to 0666
This commit is contained in:
parent
e8d06b5982
commit
d1b104c666
|
@ -88,6 +88,9 @@ proc main() =
|
||||||
removeFile(PunchdSocket)
|
removeFile(PunchdSocket)
|
||||||
let unixSocket = newAsyncSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP)
|
let unixSocket = newAsyncSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP)
|
||||||
unixSocket.bindUnix(PunchdSocket)
|
unixSocket.bindUnix(PunchdSocket)
|
||||||
|
setFilePermissions(PunchdSocket,
|
||||||
|
{fpUserRead, fpUserWrite, fpGroupRead, fpGroupWrite,
|
||||||
|
fpOthersRead, fpOthersWrite})
|
||||||
unixSocket.listen()
|
unixSocket.listen()
|
||||||
asyncCheck handleUsers(unixSocket)
|
asyncCheck handleUsers(unixSocket)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue