<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - Users logging in gets previous user's XDG_RUNTIME_DIR"
href="https://bugs.freedesktop.org/show_bug.cgi?id=62866#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - Users logging in gets previous user's XDG_RUNTIME_DIR"
href="https://bugs.freedesktop.org/show_bug.cgi?id=62866">bug 62866</a>
from <span class="vcard"><a class="email" href="mailto:lennart@poettering.net" title="Lennart Poettering <lennart@poettering.net>"> <span class="fn">Lennart Poettering</span></a>
</span></b>
<pre>The various PAM modules alter a number of process attributes (such as cgroup
membership in the case of pam_systemd, or resource limits for pam_limits, and
so on). If you recycle the PID you will inherit those. You need to start with a
fresh set of attributes by forking off a clean process from some well-defined
parent process, before you restart PAM.
pam_systemd for example will move the calling process into a cgroup of its own
and that's really a one-way operation.
Really, you cannot have the same process create multiple PAM sessions one after
the other. The various PAM modules in use do not allow that, pam_systemd is
just one of them.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>