<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><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> changed
              <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>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>REOPENED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>NOTOURBUG
           </td>
         </tr></table>
      <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#c3">Comment # 3</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>Jeez. Not sure why I am even doing this, but here's the code of slim:

<a href="http://git.berlios.de/cgi-bin/gitweb.cgi?p=slim;a=blob;f=app.cpp;h=b1b9d98d596505866d8a3bada8c90186c6a226e2;hb=HEAD">http://git.berlios.de/cgi-bin/gitweb.cgi?p=slim;a=blob;f=app.cpp;h=b1b9d98d596505866d8a3bada8c90186c6a226e2;hb=HEAD</a>

If you check that out you will see that it reuses the PAM session process. i.e.
After the session is closed it simply restarts the main logic from the same
process. And that's what is not OK. It has to terminate it and run the next
login dialog from a new process.

Anyway, what slim does here is broken, and it will break with systemd, and it
will fuck up resource limits, audit trails, security labels, yadda yadda. So,
yeah, if you don't use any of that in your PAM stack, then sure you have a good
chance things won't explode into your face right-away, but it still isn't
correct.

There's nothing to fix here in systemd, it's slim that is at fault here.
Closing.</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>