From dbb71a03712b0dbaf1933247499fc9b15f9977ac Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Sun, 29 Jan 2012 11:51:07 -0500 Subject: More sane permissions for the daemon --- alias_server/scripts/alias-server | 2 ++ 1 file changed, 2 insertions(+) (limited to 'alias_server/scripts/alias-server') diff --git a/alias_server/scripts/alias-server b/alias_server/scripts/alias-server index 34d3bf1..8dd8e6b 100644 --- a/alias_server/scripts/alias-server +++ b/alias_server/scripts/alias-server @@ -80,10 +80,12 @@ if __name__ == '__main__': pidfile = daemon.pidfile.TimeoutPIDLockFile(config.pidfile,10), files_preserve=[fh.stream.fileno()], working_directory=os.path.abspath(config.root), + umask=0o022, stdout=sys.stdout, stderr=sys.stderr) else: context = daemon.DaemonContext(detach_process = False, stdout=sys.stdout, stderr=sys.stderr, + umask=0o22, working_directory=os.path.abspath(config.root)) with context: -- cgit v1.2.3-70-g09d2