]> git.ipfire.org Git - thirdparty/systemd.git/commit
logind: fail on CreateSession if already in session 509/head
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 7 Jul 2015 17:38:41 +0000 (19:38 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Tue, 7 Jul 2015 17:38:41 +0000 (19:38 +0200)
commitb80120c4cba7d134b5437a58437a23fdf7ab2084
treefab868c26a100e7ae41f235f458ef3d4490812a9
parent586cd08e1bbf8d6b1a960dc94f46235fde0d68c1
logind: fail on CreateSession if already in session

Right now, if you're already in a session and call CreateSession, we
return information about the current session of yours. This is highy
confusing and a nasty hack. Avoid that, and instead return a commonly
known error, so the caller can detect that.

This has the side-effect, that we no longer override XDG_VTNR and XDG_SEAT
in pam_systemd, if you're already in a session. But this sounds like the
right thing to do, anyway.
src/libsystemd/sd-bus/bus-common-errors.h
src/login/logind-core.c
src/login/logind-dbus.c
src/login/pam_systemd.c