[gdm] daemon: Create home directory for greeter user
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] daemon: Create home directory for greeter user
- Date: Sat, 15 Sep 2012 14:28:32 +0000 (UTC)
commit a5df86210af93b3fb6cf1d84daec5d0a0e3f4cb9
Author: Colin Walters <walters verbum org>
Date: Thu Sep 13 16:08:31 2012 -0400
daemon: Create home directory for greeter user
For OSTree, I'm trying to move components to a model where they
automatically create whatever directories/files are needed in /var.
This helps with upgrade/downgrade scenarios.
In GDM's case, this is pretty easy to do because we start with full
root privileges.
https://bugzilla.gnome.org/show_bug.cgi?id=630485
daemon/gdm-launch-environment.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-launch-environment.c b/daemon/gdm-launch-environment.c
index 6ceb47b..10e9c32 100644
--- a/daemon/gdm-launch-environment.c
+++ b/daemon/gdm-launch-environment.c
@@ -774,6 +774,10 @@ gdm_launch_environment_start (GdmLaunchEnvironment *launch_environment)
goto out;
}
+ /* Create the home directory too */
+ if (!ensure_directory_with_uid_gid (passwd_entry->pw_dir, uid, gid, error))
+ goto out;
+
if (!start_dbus_daemon (launch_environment, uid, gid, error)) {
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]