Commit Graph

4 Commits

Author SHA1 Message Date
Ilya Priven
cef1b2f5dc don't revoke + fork session 2026-10-12 22:53:30 +00:00
Ilya Priven
a88e7de22d add copyright header 2026-10-12 11:29:29 +00:00
Ilya Priven
90cc41de32 Replace the session-keyring option with a configure option
Join the new session keyring when the server starts rather than once the
configuration file has been loaded, and control it at build time with
--enable-keyring, on by default if linux/keyctl.h is found.

Rename keyring_join and keyring_revoke to new_session_keyring and
revoke_session_keyring.
2026-10-12 11:26:28 +00:00
Ilya Priven
bba451c959 Give the server its own session keyring on Linux
The server otherwise keeps the session keyring of the login session that
started it, which pam_keyinit(8) may revoke when that session ends,
leaving the server and its panes unable to use the kernel keyring. Join
a new session keyring with the user keyring linked in once the
configuration file has been loaded, and revoke it when the server exits.

This is controlled by a new session-keyring server option, on by
default.
2026-10-12 11:26:28 +00:00