From: Lennart Poettering Date: Sun, 28 Oct 2012 16:37:16 +0000 (+0100) Subject: logind: it's OK if a process on an pty requests a session for seat0 X-Git-Tag: v196~174 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=978cf3c75fbd94fd0e046206ada6169b35edd919;p=elogind.git logind: it's OK if a process on an pty requests a session for seat0 After all, if a sudo/su inside an X terminal should get added to the same session as the X session itself. --- diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 4326e5b87..8b6021d35 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -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)) {