Am 18.04.2013 16:44, schrieb Lennart Poettering:
> On Thu, 18.04.13 16:38, Thomas Bächler (tho...@archlinux.org) wrote:
> 
>> Am 18.04.2013 16:04, schrieb Lennart Poettering:
>>> That said, screen should probably set up a new PAM session of its own
>>> and detach from the original one.
>>
>> That sounds like a good idea - unfortunately, screen does not seem to
>> have PAM session support at all, and I couldn't find the obvious place
>> to add this inside screen (I didn't invest much time in it either). This
>> would allow screen sessions to be tracked by logind instead of having
>> many "State=closing" sessions floating around.
> 
> BTW, this probably needs sokme changes in systemd too. Since right now,
> if you open a PAM session from a process that is already part of a PAM
> session logind will just return the same data as the first time. So to
> make this work properly, we'd to define a way how certain PAM services
> can explicitly ask to get a new session assigned.

So that's what happens with 'su' and 'sudo' - I always wondered. The
obvious solution would be to add an option to pam_systemd which would
force opening a new session despite being part of an active session.
That setting could then be set in /etc/pam.d/screen.


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to