Skip to content

Commit

Permalink
ensure safe perms for svs.sqlite and sync_flag
Browse files Browse the repository at this point in the history
Signed-off-by: Allie Crevier <[email protected]>
  • Loading branch information
Allie Crevier committed Apr 29, 2021
1 parent 304d269 commit f3d2732
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions securedrop_client/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions securedrop_client/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import logging
import os
from gettext import gettext as _
from typing import Dict, List, Optional # noqa: F401

Expand Down Expand Up @@ -56,7 +55,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"))
Expand Down

0 comments on commit f3d2732

Please sign in to comment.