:: Re: [DNG] libpam-xdg-support / libp…
Page principale
Supprimer ce message
Répondre à ce message
Auteur: Roger Leigh
Date:  
À: dng
Sujet: Re: [DNG] libpam-xdg-support / libpam-systemd
On 17/09/2015 12:29, Daniel Reurich wrote:
> On 17/09/15 21:01, tilt! wrote:
>> Hi,
>>
>> On 09/17/2015 10:12 AM, Roger Leigh wrote:
>> > On 11/09/2015 02:33, Daniel Reurich wrote:
>> >> We could either use $USER_$SESSIONID or $USER/$SESSIONID to implement
>> >> multiple sessions per user.
>> >
>> > This is definitely possible. It would probably need some thought on
>> > how to determine which "session" you are in when cleaning them up via
>> > PAM or whatever. Especially since it's not tied to the PAM session.
>>
>> Sorry, i still don't get it. What session?
>
> For an X Session (which is the scope of this use case), the client_id as
> chosen by the X Session Manager.
>
> - See https://en.wikipedia.org/wiki/X_session_manager and
> ftp://ftp.x.org/pub/X11R7.0/doc/PDF/xsmp.pdf
>
> That said, it should be general enough to cover any service that wants
> to provide a session management capability.


We're working at a lower level than X session management though, aren't
we? While you can layer X session management on top of the lower-level
stuff, for better or worse the XDG runtime stuff works for all login
types, not just X. So it needs to work for console logins, SSH, su/sudo
etc. via PAM.


Regards,
Roger