diff options
author | Daniil Baturin <daniil@vyos.io> | 2020-05-20 08:50:47 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 08:50:47 +0700 |
commit | a012bed858216e8049548d52f9cbbc8c9d2f7c47 (patch) | |
tree | a24c25c13d104ba616f22a6d635d5c9335d00693 /src | |
parent | 560dd978fdea64e9e339f520b68a8e012bcade8e (diff) | |
parent | 9922afc6930d4ddf0422860bdfe23113648ca5db (diff) | |
download | vyos-1x-a012bed858216e8049548d52f9cbbc8c9d2f7c47.tar.gz vyos-1x-a012bed858216e8049548d52f9cbbc8c9d2f7c47.zip |
Merge pull request #416 from kroy-the-rabbit/patch-5
T2465: Permissions on vyos-hostsd socket incorrect
Diffstat (limited to 'src')
-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 |