[systemd-devel] [Patch 0/2] logind: make sure that closed sessions will be cleaned
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Sat Jan 11 13:26:13 PST 2014
On Fri, Jan 03, 2014 at 02:19:19PM +0100, Djalal Harouni wrote:
> On logout pam_systemd should ensures the following:
> "If the last concurrent session of a user ends, the $XDG_RUNTIME_DIR
> directory and all its contents are removed, too." from manpage.
>
> Using git HEAD, and a simple systemd-nspawn test will show that the
> above is not ensured and the sessions will stay!
I can't reproduce this (with todays git). In the examples below, I
understand that you're logging in through getty. Can you test with
current git and/or provide a complete recipe to reproduce this?
Zbyszek
> A simple systemd-nspawn test:
>
> 1) login as user X
> 2) logout
> 3) login as user Y
> 4) loginctl (will list session of user X)
>
>
> In this example we are session c4:
>
> -bash-4.2# loginctl list-sessions
> SESSION UID USER SEAT
> 1 1000 tixxdz seat0
> c1 1000 tixxdz seat0
> c2 0 root seat0
> c3 1000 tixxdz seat0
> c4 0 root seat0
More information about the systemd-devel
mailing list