[gdm] display: don't auto login from anything but seat0



commit b436764275e513ebd5b0546ab047f0fce2f34b35
Author: Ray Strode <rstrode redhat com>
Date:   Tue Feb 21 11:33:24 2012 -0500

    display: don't auto login from anything but seat0
    
    Supporting other seats makes sense for kiosk type
    set ups eventually, but not without more thought.

 daemon/gdm-display.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gdm-display.c b/daemon/gdm-display.c
index 6ee675a..2cdbf65 100644
--- a/daemon/gdm-display.c
+++ b/daemon/gdm-display.c
@@ -317,6 +317,16 @@ gdm_display_real_get_timed_login_details (GdmDisplay *display,
         username = NULL;
         delay = 0;
 
+#ifdef WITH_SYSTEMD
+        /* FIXME: More careful thought needs to happen before we
+         * can support auto/timed login on auxilliary seats in the
+         * systemd path.
+         */
+        if (g_strcmp0 (display->priv->seat_id, "seat0") == 0) {
+                goto out;
+        }
+#endif
+
         res = gdm_settings_direct_get_boolean (GDM_KEY_AUTO_LOGIN_ENABLE, &enabled);
         if (res && enabled) {
             res = gdm_settings_direct_get_string (GDM_KEY_AUTO_LOGIN_USER, &username);



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