[gnome-session] gsm-util: create the config directory with 0700



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

    gsm-util: create the config directory with 0700
    
    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]