Default to 0o022 for python-daemon
Ansible give us a warning about directories having world writeable, this is due to python-daemon defaulting umask to 0. https://pagure.io/python-daemon/blob/master/f/daemon/daemon.py#_117 Switch to 0o022 for umask to disable world write for zuul directories. Change-Id: I770652190f7c084d4232e06dab9390b346a05fbf Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
@@ -194,7 +194,7 @@ class ZuulDaemonApp(ZuulApp, metaclass=abc.ABCMeta):
|
||||
with pid:
|
||||
pass
|
||||
|
||||
with daemon.DaemonContext(pidfile=pid):
|
||||
with daemon.DaemonContext(pidfile=pid, umask=0o022):
|
||||
self.run()
|
||||
|
||||
def send_command(self, cmd):
|
||||
|
||||
Reference in New Issue
Block a user