[gnome-session/gnome-3-28] gsm-util: create the config directory not world readable



commit f29a6ae733ca57964c45902ec03b7f16332d30a1
Author: Sebastien Bacher <seb128 ubuntu com>
Date:   Fri Apr 6 16:00:48 2018 +0200

    gsm-util: create the config directory not world readable
    
    there is no reason to make the user configuration available to other users
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792675

 gnome-session/gsm-util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-session/gsm-util.c b/gnome-session/gsm-util.c
index 4772c6e..acb446a 100644
--- a/gnome-session/gsm-util.c
+++ b/gnome-session/gsm-util.c
@@ -98,7 +98,7 @@ gsm_util_find_desktop_file_for_app_name (const char *name,
 static gboolean
 ensure_dir_exists (const char *dir)
 {
-        if (g_mkdir_with_parents (dir, 0755) == 0)
+        if (g_mkdir_with_parents (dir, 0700) == 0)
                 return TRUE;
 
         g_warning ("GsmSessionSave: Failed to create directory %s: %s", dir, strerror (errno));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]