[systemd-bugs] [Bug 70810] libpam-systemd does not change XDG_RUNTIME_DIR when using su - username
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Oct 27 09:00:28 CET 2013
https://bugs.freedesktop.org/show_bug.cgi?id=70810
--- Comment #2 from Gabriel Mainberger <gabisoft at freesurf.ch> ---
If getting the struct passwd * allways by username, it is working with su.
src/login/pam-module.c:166:static int get_user_data
/*r = audit_loginuid_from_pid(0, &uid);
if (r >= 0)
pw = pam_modutil_getpwuid(handle, uid);
else {*/
r = pam_get_user(handle, &username, NULL);
Oct 27 08:40:11 andromeda su[8585]: pam_unix(su:session): session closed for
user root
Oct 27 08:40:16 andromeda su[8601]: Successful su for root by gabriel
Oct 27 08:40:16 andromeda su[8601]: + /dev/pts/2 gabriel:root
Oct 27 08:40:16 andromeda su[8601]: pam_unix(su:session): session opened for
user root by gabriel(uid=1000)
Oct 27 08:40:16 andromeda su[8601]: pam_systemd(su:session): Asking logind to
create session: uid=0 pid=8601 service=su type=tty class=user seat=seat0 vtnr=7
tty=/dev/pts/2 display= remote=no remote_user=gabriel remote_host=
Oct 27 08:40:16 andromeda su[8601]: pam_systemd(su:session): Reply from logind:
id=2 object_path=/org/freedesktop/login1/session/_32
runtime_path=/run/user/1000 session_fd=6 seat=seat0 vtnr=7
Oct 27 08:42:31 andromeda su[8601]: pam_unix(su:session): session closed for
user root
The runtime_path is still wrong, but the correct uid is overgiven.
Is there any reason to use the function audit_loginuid_from_pid?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20131027/e9954d05/attachment.html>
More information about the systemd-bugs
mailing list