chiark / gitweb /
pam_systemd: do not set XDG_RUNTIME_DIR if the session's original user is not the...
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Nov 2013 04:05:00 +0000 (05:05 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 26 Nov 2013 04:05:00 +0000 (05:05 +0100)
commitbaae0358f349870544884e405e82e4be7d8add9f
treea2a49e29f8c3360de7f671031b09334bfcc176a6
parent898d5c913733d869820f85422a903da0f0685c6c
pam_systemd: do not set XDG_RUNTIME_DIR if the session's original user is not the same as the newly logged in one

It's better not to set any XDG_RUNTIME_DIR at all rather than one of a
different user. So let's do this.

This changes the bus call parameters of CreateSession(), but that is
explicitly an internal API hence should be fine. Note however, that a
logind restart (the way the RPM postinst scriptlets do it) is necessary
to make things work again.
src/login/logind-dbus.c
src/login/logind-session-dbus.c
src/login/pam-module.c