diff options
author | Rui Matos <tiagomatos@gmail.com> | 2013-06-02 19:41:48 +0200 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2013-06-04 07:47:43 -0400 |
commit | 64894dc730e02890a0536a49797498ffb2c1218e (patch) | |
tree | 604caad6d87c91110068ad1e078b1a6bde738b18 /daemon/gdm-launch-environment.c | |
parent | 018511346668e1a68fc372826df6a1b0cbf2f4dc (diff) | |
download | gdm-64894dc730e02890a0536a49797498ffb2c1218e.tar.gz |
launch-environment: Tighten permissions on directories we create
This is particularly important for gnome-initial-setup's home
directory since private user data will be stored there.
https://bugzilla.gnome.org/show_bug.cgi?id=701472
Diffstat (limited to 'daemon/gdm-launch-environment.c')
-rw-r--r-- | daemon/gdm-launch-environment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gdm-launch-environment.c b/daemon/gdm-launch-environment.c index 9e1d2b1f..932cc064 100644 --- a/daemon/gdm-launch-environment.c +++ b/daemon/gdm-launch-environment.c @@ -411,7 +411,7 @@ ensure_directory_with_uid_gid (const char *path, gid_t gid, GError **error) { - if (mkdir (path, 0755) == -1 && errno != EEXIST) { + if (mkdir (path, 0700) == -1 && errno != EEXIST) { g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, "Failed to create directory %s: %s", path, g_strerror (errno)); |