diff options
Diffstat (limited to 'src/services')
-rwxr-xr-x | src/services/vyos-hostsd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/services/vyos-hostsd b/src/services/vyos-hostsd index 647cbc8c1..6017cea82 100755 --- a/src/services/vyos-hostsd +++ b/src/services/vyos-hostsd @@ -278,7 +278,11 @@ if __name__ == '__main__': context = zmq.Context() socket = context.socket(zmq.REP) + + # Set the right permissions on the socket, then change it back + o_mask = os.umask(0) socket.bind(SOCKET_PATH) + os.umask(o_mask) while True: # Wait for next request from client |