Skip to content

Commit

Permalink
ui: create /run/user/ dirs with proper permissions
Browse files Browse the repository at this point in the history
"$XDG_RUNTIME_DIR defines the base directory relative to which user-specific
non-essential runtime files and other file objects (such as sockets,
named pipes, ...) should be stored. The directory MUST be owned by the
user, and he MUST be the only one having read and write access to it.
Its Unix access mode MUST be 0700."

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
  • Loading branch information
gustavo-iniguez-goya committed Oct 17, 2022
1 parent b2ccb34 commit 820e7d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/opensnitch/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ def create_socket_dirs():

try:
if os.path.exists(run_path):
os.makedirs(run_path + "/opensnitch/")
os.makedirs(run_path + "/opensnitch/", 0o700)
if os.path.exists(var_run_path):
os.makedirs(var_run_path + "/opensnitch/")
os.makedirs(var_run_path + "/opensnitch/", 0o700)
except:
pass

Expand Down

0 comments on commit 820e7d5

Please sign in to comment.