From baae0358f349870544884e405e82e4be7d8add9f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 26 Nov 2013 05:05:00 +0100 Subject: 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-session-dbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/login/logind-session-dbus.c') diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c index 9f3217baf5..bb62b26ce4 100644 --- a/src/login/logind-session-dbus.c +++ b/src/login/logind-session-dbus.c @@ -667,12 +667,12 @@ int session_send_create_reply(Session *s, sd_bus_error *error) { (uint32_t) s->vtnr); return sd_bus_reply_method_return( - c, - "soshsub", + c, "soshusub", s->id, p, s->user->runtime_path, fifo_fd, + (uint32_t) s->user->uid, s->seat ? s->seat->id : "", (uint32_t) s->vtnr, false); -- cgit v1.2.3-54-g00ecf