Comment 6 for bug 894391

Revision history for this message
Steve Langasek (vorlon) wrote : Re: [FFe] support $XDG_RUNTIME_DIR

I've just uploaded a new package, pam-xdg-support, to quantal and am seeking a FFe for it. This is a small module which handles the setup and teardown of the XDG_RUNTIME_DIR, addressing a long-standing bug report from the desktop team. It should be suitable for inclusion in the default PAM stack on the desktop.

The other options where this could have been implemented were pam_ck_connector and pam_systemd, but neither was suitable, hence the new package.

 - pam_ck_connector and pam_systemd are both designed to be used for login sessions only. That's insufficient for XDG_RUNTIME_DIR, which needs to be updated each time there's a user context change (e.g., sudo/su) because the pointed-to directory is, by definition, only writable by the owning user.
 - pam_systemd depends on systemd logind for the directory management, and logind is deeply intertwined with the systemd-specific cgroups layout which we do not want to adopt at this time.

The pam module is short (320 loc) and I hope sufficiently auditable that it can be included in quantal.