mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-13 13:17:43 +03:00
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.
This commit is contained in:
parent
7ba6438631
commit
978cf3c75f
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user