From 012011f53c3f719bc5b123ffcdb05a7cafd227f2 Mon Sep 17 00:00:00 2001 From: Eugene Crosser Date: Thu, 4 Aug 2022 00:22:03 +0200 Subject: [PATCH] rectifier: set umask for zmq publish socket --- loctrkd/rectifier.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/loctrkd/rectifier.py b/loctrkd/rectifier.py index 6676517..c8f9912 100644 --- a/loctrkd/rectifier.py +++ b/loctrkd/rectifier.py @@ -51,7 +51,9 @@ def runserver(conf: ConfigParser) -> None: zpush = zctx.socket(zmq.PUSH) # type: ignore zpush.connect(conf.get("collector", "listenurl")) zpub = zctx.socket(zmq.PUB) # type: ignore + oldmask = umask(0o117) zpub.bind(conf.get("rectifier", "publishurl")) + umask(oldmask) try: while True: -- 2.43.0