[gdm] launch-environment: Tighten permissions on directories we create
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] launch-environment: Tighten permissions on directories we create
- Date: Tue, 4 Jun 2013 11:47:49 +0000 (UTC)
commit 64894dc730e02890a0536a49797498ffb2c1218e
Author: Rui Matos <tiagomatos gmail com>
Date: Sun Jun 2 19:41:48 2013 +0200
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
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 9e1d2b1..932cc06 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]