Commit 6909dc77 authored by Rudolf Polzer's avatar Rudolf Polzer
Browse files

auth_pam_x11: measure the prompt timeout in realtime, not monotonic time.

Yes, this means auth_pam_x11 may instant time out when the clock is
stepped forward by NTP. Trying this out anyway, as:

- This should only be an issue if the clock is stepped forward by more
  than few minutes, as the timeout defaults to 5 minutes.
- We also put in a specific counter measure against the clock stepping
  backwards - when it does, we simply reset the timeout.

Advantage: that way, auth_pam_x11 will almost always exit on resuming
from suspend state. This is very desirable so we can control visibility
of the hostname in a wrapper script.
parent 193c817e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment