summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-05-26 15:02:06 -0400
committerSimo Sorce <simo@redhat.com>2015-05-26 15:05:01 -0400
commit62a302e6676a5ac113eee6143c8bcf6418f28b84 (patch)
tree193004916fbd2ffdc6014908e29d1d14af2bbcd2
parent41d2241a038f2b0ddf797cf9a60ec52d1e96d3c7 (diff)
downloadcustodia-62a302e6676a5ac113eee6143c8bcf6418f28b84.tar.gz
custodia-62a302e6676a5ac113eee6143c8bcf6418f28b84.tar.xz
custodia-62a302e6676a5ac113eee6143c8bcf6418f28b84.zip
Make the socket world accessible by default
Signed-off-by: Simo Sorce <simo@redhat.com>
-rw-r--r--custodia/httpd/server.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py
index f10f539..dc88aef 100644
--- a/custodia/httpd/server.py
+++ b/custodia/httpd/server.py
@@ -64,7 +64,9 @@ class ForkingLocalHTTPServer(ForkingMixIn, UnixStreamServer):
self.server_string = self.config['server_string']
def server_bind(self):
+ oldmask = os.umask(000)
UnixStreamServer.server_bind(self)
+ os.umask(oldmask)
self.socket_file = self.socket.getsockname()