[systemd-devel] pam: Don't use loginuid [was: Re: Fix PAM module to not clobber XDG_RUNTIME_DIR with su]

Lennart Poettering lennart at poettering.net
Mon Nov 25 20:17:39 PST 2013


On Wed, 20.11.13 19:19, Colin Walters (walters at verbum.org) wrote:

> > So yeah, there your mix
> > and match is broken: 
> 
> I'm proposing a simple goal: XDG_RUNTIME_DIR should always be that
> matching the current uid.  I can't think of any case where you'd
> want it otherwise.

That can't work. As the directory only exists when a real login session
is around. su/sudo don't get their own login sessins, hence the dir
doesn't necessarily exist and from the perspective of the code running
in su/sudo the lifetime semantics of the dir wouldn't match any
expections...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list