chiark / gitweb /
logind: it's OK if a process on an pty requests a session for seat0
authorLennart Poettering <lennart@poettering.net>
Sun, 28 Oct 2012 16:37:16 +0000 (17:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 30 Oct 2012 02:40:42 +0000 (03:40 +0100)
After all, if a sudo/su inside an X terminal should get added to the
same session as the X session itself.

src/login/logind-dbus.c

index 4326e5b87cf3c339638641629a7148a60ef1c605..8b6021d35f667a30e2582651ce67b9f8e3e17a04 100644 (file)
@@ -415,8 +415,7 @@ static int bus_manager_create_session(Manager *m, DBusMessage *message, DBusMess
                 if (vtnr != 0)
                         return -EINVAL;
 
-        } else if (!isempty(tty) && s && seat_is_vtconsole(s))
-                return -EINVAL;
+        }
 
         if (s) {
                 if (seat_can_multi_session(s)) {