From 8b7e3aba7173b9cd164fbccafa6b06d3f99c3d60 Mon Sep 17 00:00:00 2001 From: Allie Crevier Date: Thu, 29 Apr 2021 11:42:00 -0700 Subject: [PATCH] ensure safe perms for svs.sqlite and sync_flag Signed-off-by: Allie Crevier --- securedrop_client/app.py | 1 + securedrop_client/gui/main.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/securedrop_client/app.py b/securedrop_client/app.py index db7ac6f827..7630115bf5 100644 --- a/securedrop_client/app.py +++ b/securedrop_client/app.py @@ -190,6 +190,7 @@ def start_app(args, qt_args) -> None: - configure the client (logic) object. - ensure the application is setup in the default safe starting state. """ + os.umask(0o077) configure_locale_and_language() init(args.sdc_home) configure_logging(args.sdc_home) diff --git a/securedrop_client/gui/main.py b/securedrop_client/gui/main.py index 3dee3bc776..a56c24ad94 100644 --- a/securedrop_client/gui/main.py +++ b/securedrop_client/gui/main.py @@ -56,7 +56,6 @@ def __init__(self) -> None: place for details / message contents / forms. """ super().__init__() - os.umask(0o077) load_font("Montserrat") load_font("Source_Sans_Pro") self.setStyleSheet(load_css("sdclient.css"))