2012-11-05 19:33:03 +01:00
|
|
|
From 978cf3c75fbd94fd0e046206ada6169b35edd919 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
|
|
Date: Sun, 28 Oct 2012 17:37:16 +0100
|
|
|
|
Subject: [PATCH] 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.
|
|
|
|
---
|
|
|
|
src/login/logind-dbus.c | 3 +--
|
|
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
|
2013-01-09 10:46:41 +01:00
|
|
|
Index: systemd-195/src/login/logind-dbus.c
|
|
|
|
===================================================================
|
|
|
|
--- systemd-195.orig/src/login/logind-dbus.c
|
|
|
|
+++ systemd-195/src/login/logind-dbus.c
|
|
|
|
@@ -409,8 +409,7 @@ static int bus_manager_create_session(Ma
|
2012-11-05 19:33:03 +01:00
|
|
|
if (vtnr != 0)
|
|
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
- } else if (!isempty(tty) && s && seat_is_vtconsole(s))
|
|
|
|
- return -EINVAL;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (s) {
|
|
|
|
if (seat_can_multi_session(s)) {
|