Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pam_time integration with pam_systemd #562

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

vorlonofportland
Copy link
Contributor

Since version 244, systemd supports reading systemd.runtime_max_sec from pam data and if present, uses it as a limit on the length of the session.

It is a longstanding flaw of pam_time that it can enforce the start time of a session, but it cannot enforce the end time.

With this patch, pam_time can integrate with pam_systemd to finally enforce the end of a session, as intended.

On systemd systems, this will cause RuntimeMaxSec to be set for an associated
session unit, for the first time allowing pam_time limits to be enforced for
the end of the service's use and not just the beginning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants