]> git.ipfire.org Git - thirdparty/systemd.git/commit
pam_systemd: Forward systemd.runtime_max_sec setting to session scope 13423/head
authorPhilip Withnall <withnall@endlessm.com>
Wed, 12 Jun 2019 08:41:45 +0000 (09:41 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 Oct 2019 08:44:31 +0000 (09:44 +0100)
commitadc09af234047126b5ed65869d575c99dec3f9cc
treefea2894b0e54370cf7dc0fec474a4214ae1dc983
parent9ed7de605d7c1a3290e544e92ea5de6141c26bbc
pam_systemd: Forward systemd.runtime_max_sec setting to session scope

Allow earlier PAM modules to set `systemd.runtime_max_sec`. If they do,
parse it and set it as the `RuntimeMaxUSec=` property of the session
scope, to limit the maximum lifetime of the session. This could be
useful for time-limiting login sessions, for example.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #12035
man/pam_systemd.xml
src/login/pam_systemd.c